@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Orbitron:wght@600;700;800&display=swap');

[hidden] {
  display: none !important;
}

:root {
  --bg: #08080a;
  --bg-elevated: #101014;
  --bg-card: rgba(18, 18, 22, 0.85);
  --bg-card-solid: #141418;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --border-red: rgba(225, 6, 27, 0.35);
  --text: #f4f4f5;
  --muted: #8b8b96;
  --silver: #d4d4dc;
  --red: #e1061b;
  --red-bright: #ff2d42;
  --red-glow: rgba(225, 6, 27, 0.4);
  --red-dim: rgba(225, 6, 27, 0.1);
  --green: #34d399;
  --amber: #fbbf24;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-red: 0 8px 40px rgba(225, 6, 27, 0.15);
  --font: 'Inter', system-ui, sans-serif;
  --display: 'Orbitron', system-ui, sans-serif;
  --mono: 'SF Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.6;
  font-size: clamp(0.9rem, 2.5vw, 0.95rem);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
  overscroll-behavior-x: none;
}

/* ── Fond ── */
.fx-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
}

.fx-bg-mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(225, 6, 27, 0.22), transparent 58%),
    radial-gradient(circle at 85% 45%, rgba(225, 6, 27, 0.08), transparent 42%),
    radial-gradient(circle at 12% 72%, rgba(225, 6, 27, 0.06), transparent 38%);
  animation: fx-mesh-drift 18s ease-in-out infinite alternate;
}

.fx-bg-glow {
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  margin-left: min(-260px, -35vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 6, 27, 0.28) 0%, transparent 68%);
  filter: blur(40px);
  opacity: 0.75;
  animation: fx-glow-pulse 6s ease-in-out infinite;
  will-change: transform, opacity;
}

.fx-bg-orbit {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.fx-bg-logo {
  position: absolute;
  opacity: 0.055;
  filter: blur(1px) saturate(1.2);
  pointer-events: none;
  user-select: none;
}

.fx-bg-logo--a {
  width: min(340px, 48vw);
  top: 6%;
  left: 50%;
  margin-left: min(-170px, -24vw);
  animation: fx-orbit-a 28s linear infinite;
}

.fx-bg-logo--b {
  width: min(220px, 32vw);
  bottom: 12%;
  right: 8%;
  animation: fx-orbit-b 34s linear infinite reverse;
}

.fx-bg-logo--c {
  width: min(180px, 26vw);
  top: 42%;
  left: 4%;
  animation: fx-orbit-c 22s ease-in-out infinite alternate;
}

.fx-bg-xfield {
  position: absolute;
  inset: 0;
}

.fx-bg-xfield span {
  position: absolute;
  font-family: var(--display);
  font-weight: 800;
  color: var(--red);
  opacity: 0;
  text-shadow: 0 0 24px var(--red-glow);
  animation: fx-x-float 12s ease-in-out infinite;
}

.fx-bg-xfield span:nth-child(1) { left: 8%; top: 18%; font-size: 1.4rem; animation-delay: 0s; }
.fx-bg-xfield span:nth-child(2) { left: 22%; top: 62%; font-size: 2rem; animation-delay: -2s; }
.fx-bg-xfield span:nth-child(3) { left: 78%; top: 24%; font-size: 1.6rem; animation-delay: -4s; }
.fx-bg-xfield span:nth-child(4) { left: 88%; top: 70%; font-size: 1.2rem; animation-delay: -6s; }
.fx-bg-xfield span:nth-child(5) { left: 48%; top: 82%; font-size: 2.4rem; animation-delay: -1s; }
.fx-bg-xfield span:nth-child(6) { left: 62%; top: 12%; font-size: 1rem; animation-delay: -3s; }
.fx-bg-xfield span:nth-child(7) { left: 4%; top: 44%; font-size: 1.8rem; animation-delay: -5s; }
.fx-bg-xfield span:nth-child(8) { left: 92%; top: 48%; font-size: 1.3rem; animation-delay: -7s; }
.fx-bg-xfield span:nth-child(9) { left: 36%; top: 8%; font-size: 1.1rem; animation-delay: -8s; }
.fx-bg-xfield span:nth-child(10) { left: 54%; top: 52%; font-size: 1.7rem; animation-delay: -9s; }

@keyframes fx-mesh-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(2%, 3%, 0) scale(1.04); }
}

@keyframes fx-glow-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

@keyframes fx-orbit-a {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(24px, 18px, 0) rotate(6deg); }
  100% { transform: translate3d(-12px, 28px, 0) rotate(-4deg); }
}

@keyframes fx-orbit-b {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-30px, -16px, 0) rotate(-8deg); }
  100% { transform: translate3d(16px, -24px, 0) rotate(5deg); }
}

@keyframes fx-orbit-c {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.04; }
  100% { transform: translate3d(40px, -20px, 0) scale(1.12); opacity: 0.08; }
}

@keyframes fx-x-float {
  0%, 100% { opacity: 0; transform: translate3d(0, 12px, 0) scale(0.85); }
  20% { opacity: 0.12; }
  50% { opacity: 0.22; transform: translate3d(0, -18px, 0) scale(1); }
  80% { opacity: 0.08; }
}

.fx-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  z-index: 1;
}

.fx-crosshair,
.fx-sparks,
.fx-scanline { display: none; }

/* Hero logo dynamique */
.hero-visual {
  position: relative;
  display: block;
  width: min(480px, 90vw);
  max-width: 90vw;
  margin: 0 auto 1.5rem;
}

.hero-logo-glow {
  position: absolute;
  inset: 10% 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 6, 27, 0.45), transparent 70%);
  filter: blur(28px);
  animation: fx-glow-pulse 5s ease-in-out infinite;
  z-index: 0;
}

.hero-logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(225, 6, 27, 0.25);
  pointer-events: none;
  z-index: 1;
}

.hero-logo-ring--outer {
  inset: -6%;
  border-style: dashed;
  animation: fx-ring-spin 24s linear infinite;
}

.hero-logo-ring--inner {
  inset: 2%;
  border-color: rgba(225, 6, 27, 0.12);
  animation: fx-ring-spin 16s linear infinite reverse;
}

@keyframes fx-ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-logo-parallax {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-logo-float {
  animation: fx-logo-float 5s ease-in-out infinite;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero img.logo-lg,
.hero img.logo-lg-animated {
  position: relative;
  display: block;
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 12px 40px rgba(225, 6, 27, 0.35));
  transition: filter 0.3s ease;
}

.page-home .hero .hero-visual img.logo-lg,
.page-home .hero .hero-visual img.logo-lg-animated {
  left: 0;
}

/* Accueil — pas de décalage horizontal au scroll */
body.page-home {
  touch-action: pan-y;
  overscroll-behavior-x: none;
}

body.page-home .wrap {
  overflow-x: clip;
  max-width: 100%;
}

body.page-home .nav.nav-landing {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
  position: relative;
  top: auto;
}

body.page-home .hero-visual {
  overflow: hidden;
  max-width: min(480px, 100%);
}

body.page-home .hero-logo-ring--outer {
  inset: 0;
}

body.page-home .hero-logo-ring--inner {
  inset: 4%;
}

body.page-home .hero,
body.page-home .disponibilite-section,
body.page-home .rubriques-section,
body.page-home .features,
body.page-home .site-footer {
  max-width: 100%;
}

.hero-visual:hover img.logo-lg-animated {
  filter: drop-shadow(0 16px 52px rgba(225, 6, 27, 0.55));
}

@keyframes fx-logo-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .fx-bg-mesh,
  .fx-bg-glow,
  .fx-bg-logo,
  .fx-bg-xfield span,
  .hero-logo-glow,
  .hero-logo-ring,
  .hero-logo-float {
    animation: none !important;
  }
}

a {
  color: var(--red-bright);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: #fff; text-decoration: none; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(0.85rem, 3.5vw, 1.5rem) clamp(2.5rem, 6vw, 4rem);
  width: 100%;
}

/* ── Glass card mixin ── */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── Nav ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 calc(-1 * clamp(0.85rem, 3.5vw, 1.5rem)) 1.75rem;
  padding: 0.75rem clamp(0.85rem, 3.5vw, 1.5rem);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 10, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.brand:hover { opacity: 0.9; }

.brand img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.brand span { display: none; }

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-session {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: #fff;
  background: var(--red-dim);
  border: 1px solid var(--border-red);
}

.nav-link-canal {
  color: #6ecbff;
  border: 1px solid rgba(110, 203, 255, 0.22);
}

.nav-link-canal:hover {
  color: #fff;
  background: rgba(110, 203, 255, 0.12);
  border-color: rgba(110, 203, 255, 0.35);
}

.nav-user {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Header public — logo centré, sans fond */
.nav.nav-landing {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 3.75rem;
  margin: 0 0 1.25rem;
  padding: 0.5rem 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

.nav.nav-landing .brand-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.nav.nav-landing .brand-center img {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(220px, 58vw);
  object-fit: contain;
  mix-blend-mode: lighten;
}

.nav.nav-landing .nav-auth-links {
  position: relative;
  z-index: 2;
  margin-left: auto;
  flex-wrap: nowrap;
  gap: 0.45rem;
}

.nav.nav-landing .nav-auth-links .nav-session {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav.nav-landing.nav-landing-minimal {
  justify-content: flex-end;
  align-items: center;
  min-height: 0;
  padding: 0.35rem 0 0.5rem;
  margin-bottom: 0.5rem;
}

.nav.nav-landing.nav-landing-minimal .nav-auth-links {
  width: auto;
  justify-content: flex-end;
  margin-left: auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--silver);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--border-hover);
  color: #fff;
  background: #1a1a20;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #ff2d42 0%, #c8001a 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff4d5e 0%, #e1061b 100%);
  box-shadow: 0 12px 48px rgba(225, 6, 27, 0.35);
  border-color: transparent;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
}

.btn-danger {
  border-color: rgba(225, 6, 27, 0.3);
  color: #ff8a96;
  background: rgba(225, 6, 27, 0.06);
}

.btn-danger:hover {
  background: rgba(225, 6, 27, 0.12);
  border-color: var(--red);
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero img.logo-lg {
  display: block;
  margin: 0 auto 1.5rem;
  max-width: min(480px, 90vw);
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

.page-home .hero > img.logo-lg {
  position: relative;
  left: 0.45rem;
}

.hero-visual + .hero-line,
.hero-visual ~ .hero-line {
  margin-top: 0;
}

.hero .hero-visual ~ .hero-line {
  margin: 0 auto 1.25rem;
}

.hero .hero-visual {
  margin-bottom: 1.5rem;
}

.hero .hero-visual img.logo-lg,
.hero .hero-visual img.logo-lg-animated {
  margin-bottom: 0;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: #fff;
}

.hero-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
  margin: 0 auto 1.25rem;
  border-radius: 2px;
}

.hero p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border-red);
  background: var(--red-dim);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--silver);
}

.price-tag strong {
  font-family: var(--display);
  color: var(--red-bright);
  font-size: 1rem;
}

/* ── Stats strip ── */
.disponibilite-section {
  margin: 2.5rem 0;
}

.disponibilite-title {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--silver);
  margin-bottom: 1rem;
}

.disponibilite-footer {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
  margin-top: 1.25rem;
}

.disponibilite-brands {
  margin-top: 1.25rem;
  padding: 0;
}

/* ── Aperçu marques SCAMMA — fluide, tous écrans ── */
.brand-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.55rem, 2vw, 0.9rem);
  width: 100%;
}

.brand-preview-tile {
  min-width: 0;
}

.brand-preview-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(2.75rem, 11vw, 4.25rem);
  padding: clamp(0.3rem, 1.2vw, 0.55rem) clamp(0.35rem, 1.5vw, 0.65rem);
  border-radius: clamp(8px, 1.8vw, 12px);
}

.brand-preview-logo-box.is-light {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(12, 65, 154, 0.08);
}

.brand-preview-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: clamp(2rem, 8.5vw, 3.35rem);
  object-fit: contain;
  object-position: center;
}

[data-brand="netflix"] .brand-preview-logo,
.scenario-card[data-scenario="netflix"] .brand-preview-logo {
  max-height: clamp(1.35rem, 5.5vw, 2.15rem);
}

[data-brand="dhl"] .brand-preview-logo,
.scenario-card[data-scenario="dhl"] .brand-preview-logo {
  max-height: clamp(2.35rem, 9vw, 3.75rem);
}

[data-brand="mondial-relay"] .brand-preview-logo,
.scenario-card[data-scenario="mondial-relay"] .brand-preview-logo {
  max-height: clamp(1.45rem, 5.5vw, 2.35rem);
}

.disponibilite-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-height: clamp(4rem, 14vw, 5.25rem);
  padding: clamp(0.65rem, 2.5vw, 1.1rem) clamp(0.5rem, 2vw, 0.85rem);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.disponibilite-brand:hover {
  border-color: var(--border-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.disponibilite-brand[data-brand="ameli"] .brand-preview-logo-box {
  background: transparent;
  box-shadow: none;
}

.disponibilite-brand[data-brand="ameli"] .brand-preview-logo {
  max-height: clamp(2.5rem, 10vw, 4rem);
  max-width: 94%;
}

@media (hover: none) {
  .disponibilite-brand:hover,
  .scenario-card:hover {
    transform: none;
  }
}

@media (max-width: 1024px) {
  .brand-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .brand-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.stat {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color 0.2s;
}

.stat:hover { border-color: var(--border-red); }

.stat-val {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--red-bright);
  letter-spacing: 0.02em;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.35rem;
}

/* ── Features ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.25s ease;
}

.feature:hover {
  border-color: var(--border-red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-red);
}

.feature-num {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.feature p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Auth ── */
.page-auth .auth-card { margin-top: 0.5rem; }

.auth-card {
  max-width: 420px;
  margin: 1rem auto 3rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow), var(--shadow-red);
}

.auth-card h1 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.35rem;
}

.auth-card .sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.field { margin-bottom: 1.1rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--silver);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder,
.field textarea::placeholder { color: #555; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-dim);
}

.field input.input-readonly {
  opacity: 0.85;
  cursor: not-allowed;
  color: var(--silver);
}

.btn-support-telegram {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.65rem;
  width: 100%;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.15) 0%, rgba(0, 136, 204, 0.05) 100%);
  border-color: rgba(0, 136, 204, 0.35);
  color: #6ecbff;
}

.btn-telegram-logo {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: block;
}

.btn-telegram-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(0, 136, 204, 0.35);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.18) 0%, rgba(0, 136, 204, 0.06) 100%);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}

.btn-telegram-icon:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.28) 0%, rgba(0, 136, 204, 0.12) 100%);
  border-color: rgba(110, 203, 255, 0.55);
}

.btn-telegram-icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.site-telegram-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.site-telegram-panel-head .btn-telegram-icon {
  width: 52px;
  min-width: 52px;
  height: 52px;
  border-radius: 14px;
}

.site-telegram-panel-head .btn-telegram-icon img {
  width: 28px;
  height: 28px;
}

.site-actions .btn-telegram-icon {
  order: -1;
}

.support-telegram-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0 3rem;
}

.support-telegram-page .page-hero {
  margin-bottom: 2rem;
}

.btn-support-telegram-lg {
  width: auto;
  min-width: min(100%, 22rem);
  padding: 1rem 1.75rem;
  font-size: 1rem;
  margin-top: 0;
}

.btn-support-telegram-lg .btn-telegram-logo {
  width: 28px;
  height: 28px;
}

.btn-support-telegram:hover {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.28) 0%, rgba(0, 136, 204, 0.12) 100%);
  border-color: rgba(0, 136, 204, 0.55);
  color: #fff;
}

.btn-icon {
  font-size: 1rem;
  line-height: 1;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 0.92rem;
  min-width: 12rem;
}

.input-lg {
  padding: 0.9rem 1.05rem;
  font-size: 1rem;
}

.form-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.domain-link-head,
.domain-sites-head {
  margin-bottom: 1.25rem;
}

.domain-link-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}

.domain-link-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.domain-link-panel.is-collapsed #site-form {
  display: none;
}

.domain-link-panel.is-collapsed #btn-close-domain-wizard {
  display: none;
}

.domain-link-panel:not(.is-collapsed) #btn-open-domain-wizard {
  display: none;
}

.domain-link-head h2,
.domain-sites-head h2 {
  margin-bottom: 0.25rem;
}

.domain-form-simple {
  display: grid;
  gap: 1.25rem;
}

.domain-form-steps {
  display: grid;
  gap: 0;
}

.domain-step {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
}

.domain-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.domain-step:first-child {
  padding-top: 0;
}

.domain-step-body {
  min-width: 0;
}

.domain-step-title {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.domain-step-desc {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--silver);
}

.domain-step-desc strong {
  color: var(--text);
  font-weight: 600;
}

.domain-step-actions {
  margin-top: 0.25rem;
}

.domain-step[hidden] {
  display: none !important;
}

.domain-step.domain-step-unfold {
  animation: domain-step-in 0.45s ease forwards;
}

.domain-step.is-complete .domain-step-num {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

.domain-step-reveal {
  opacity: 0;
  transform: translateY(14px);
}

.domain-form-steps.is-revealed .domain-step-reveal:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}

.domain-form-steps.is-revealed .domain-step-reveal {
  animation: domain-step-in 0.55s ease forwards;
  animation-delay: calc(var(--step-i, 0) * 0.14s + 0.08s);
}

@keyframes domain-step-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .domain-step-reveal {
    opacity: 1;
    transform: none;
  }

  .domain-form-steps.is-revealed .domain-step-reveal {
    animation: none;
  }
}

.domain-verify-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.domain-verify-row .input-lg {
  flex: 1 1 12rem;
  min-width: 0;
  min-height: 0;
}

.field input.input-lg.domain-input-upper {
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
  line-height: 1.35;
}

.domain-verify-row .btn {
  flex: 0 0 auto;
  align-self: stretch;
  white-space: nowrap;
}

.dns-auto-hint {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

#dns-example-ip.dns-ip-granted {
  color: var(--red-bright);
  font-family: var(--mono);
}

.dns-hint-compact {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  margin-top: 0.25rem;
}

.dns-hint-compact .btn-support-telegram {
  margin-top: 0.85rem;
  width: 100%;
  justify-content: center;
}

.dns-hint-compact .dns-example-wrap {
  margin-bottom: 0;
}

.domain-scenario-field {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

#btn-link-domain:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.domain-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--red-dim);
  border: 1px solid var(--border-red);
  color: var(--red-bright);
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.scenario-picker-hint {
  margin-bottom: 0.75rem;
}

.scenario-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(0.35rem, 1.5vw, 0.55rem);
  padding: clamp(0.7rem, 2.5vw, 0.95rem) clamp(0.55rem, 2vw, 0.75rem) clamp(0.65rem, 2vw, 0.8rem);
  min-height: 0;
  border-radius: clamp(10px, 2vw, 14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.28) 100%);
  color: var(--text);
  font-family: var(--font);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.scenario-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.22) 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.scenario-card.selected {
  border-color: rgba(255, 255, 255, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.28) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.scenario-logo-wrap {
  width: 100%;
}

.scenario-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  flex: 1;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.scenario-name {
  font-size: clamp(0.78rem, 2.6vw, 0.92rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  word-break: break-word;
}

.scenario-tag {
  font-size: clamp(0.62rem, 2vw, 0.72rem);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.site-scamma-summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.55rem 0 0.35rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.site-scamma-logo {
  display: block;
  width: auto;
  max-width: 5.5rem;
  max-height: 2.5rem;
  object-fit: contain;
  flex-shrink: 0;
}

.site-scamma-summary[data-scenario="ameli"] .site-scamma-logo {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  padding: 0.25rem 0.4rem;
}

.site-scamma-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-scamma-label strong {
  color: #fff;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.site-domain-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.site-domain-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.site-domain-btn .site-ssl-detail {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  font-size: 0.72rem;
}

.site-domain-meta .badge,
.site-domain-meta .site-clicks-badge {
  display: inline-flex;
  margin: 0;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.field-hint code {
  color: var(--red-bright);
  font-family: var(--mono);
  font-size: 0.75rem;
  background: rgba(225, 6, 27, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.form-error {
  background: rgba(225, 6, 27, 0.1);
  border: 1px solid rgba(225, 6, 27, 0.3);
  border-radius: var(--radius-sm);
  color: #ff9aa5;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  display: none;
}

.form-error.visible { display: block; }

.auth-card .btn-primary {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.8rem;
  font-size: 0.95rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── Dashboard ── */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dashboard-header h1 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-header .welcome {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.dashboard-header .welcome strong { color: var(--text); font-weight: 600; }

.fx-notify-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  align-self: center;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
  color: #86efac;
}

.fx-notify-toggle.is-muted {
  border-color: var(--border);
  background: transparent;
  color: var(--muted);
  opacity: 0.75;
}

.fx-notify-toggle .fx-notify-icon {
  font-size: 1rem;
  line-height: 1;
}

.fx-notify-toggle .fx-notify-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toast.toast-live-captcha {
  border-color: rgba(52, 211, 153, 0.5);
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.96) 0%, rgba(4, 47, 46, 0.98) 100%);
  color: #a7f3d0;
}

.toast.toast-live-captcha .toast-icon { background: rgba(52, 211, 153, 0.2); color: #6ee7b7; }

.toast.toast-live-click {
  border-color: rgba(96, 165, 250, 0.5);
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%);
  color: #bfdbfe;
}

.toast.toast-live-click .toast-icon { background: rgba(96, 165, 250, 0.2); color: #93c5fd; }

.toast.toast-live-billing,
.toast.toast-live-rez {
  border-color: rgba(250, 204, 21, 0.5);
  background: linear-gradient(135deg, rgba(113, 63, 18, 0.96) 0%, rgba(69, 26, 3, 0.98) 100%);
  color: #fde68a;
}

.toast.toast-live-billing .toast-icon,
.toast.toast-live-rez .toast-icon { background: rgba(250, 204, 21, 0.2); color: #fcd34d; }

.toast.toast-live-cc {
  border-color: rgba(248, 113, 113, 0.55);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.96) 0%, rgba(69, 10, 10, 0.98) 100%);
  color: #fecaca;
}

.toast.toast-live-cc .toast-icon { background: rgba(248, 113, 113, 0.22); color: #fca5a5; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-active {
  background: rgba(52, 211, 153, 0.1);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-expired {
  background: var(--red-dim);
  color: #ff8a96;
  border: 1px solid var(--border-red);
}

.badge-trial {
  background: rgba(251, 191, 36, 0.1);
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-ssl-ok {
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.badge-ssl-fail {
  background: rgba(225, 6, 27, 0.12);
  color: var(--red-bright);
  border: 1px solid rgba(225, 6, 27, 0.25);
}

.badge-ssl-pending {
  background: rgba(139, 139, 150, 0.12);
  color: var(--muted);
  border: 1px solid var(--border);
}

.badge-dns-ok {
  background: rgba(96, 165, 250, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.badge-dns-fail {
  background: rgba(225, 6, 27, 0.12);
  color: var(--red-bright);
  border: 1px solid rgba(225, 6, 27, 0.25);
}

.badge-dns-pending {
  background: rgba(139, 139, 150, 0.12);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* Pipeline DNS → HTTPS → Validé */
.provision-global-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.08);
  transition: border-color 0.25s, background 0.25s;
}

.provision-global-banner.is-polling {
  border-color: rgba(225, 6, 27, 0.45);
  background: rgba(225, 6, 27, 0.06);
}

.provision-global-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.provision-global-text strong {
  font-size: 0.9rem;
  color: var(--text);
}

.provision-global-text span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.provision-spinner {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--red-bright);
  border-radius: 50%;
  animation: provision-spin 0.75s linear infinite;
}

.provision-spinner-sm {
  width: 0.85rem;
  height: 0.85rem;
  margin-top: 0;
  margin-right: 0.35rem;
  display: inline-block;
  vertical-align: -0.15em;
}

@keyframes provision-spin {
  to { transform: rotate(360deg); }
}

.provision-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0.75rem 0 0.5rem;
}

.provision-step {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  min-width: 0;
  transition: border-color 0.2s, background 0.2s;
}

.provision-step.is-active {
  border-color: rgba(225, 6, 27, 0.45);
  background: rgba(225, 6, 27, 0.08);
  box-shadow: 0 0 20px rgba(225, 6, 27, 0.08);
}

.provision-step.is-done {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.06);
}

.provision-step.is-waiting {
  opacity: 0.55;
}

.provision-step-icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
}

.provision-step-icon.done {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
}

.provision-step-icon.wait {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid var(--border);
}

.provision-step-icon.spin {
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--red-bright);
  animation: provision-spin 0.75s linear infinite;
}

.provision-step-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.provision-step-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.provision-step-sub {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.3;
}

.provision-step-hint {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--silver);
  line-height: 1.45;
}

.provision-step-hint-ok {
  color: #6ee7b7;
}

.site-provision-wrap {
  margin: 0.65rem 0 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.dns-verify-subhead {
  margin-top: 1rem !important;
  margin-bottom: 0.5rem !important;
  font-size: 0.78rem !important;
}

@media (max-width: 640px) {
  .provision-steps {
    grid-template-columns: 1fr;
  }
}

.dns-panel {
  margin-bottom: 1rem;
}

.dns-steps {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: var(--silver);
  font-size: 0.9rem;
  line-height: 1.65;
}

.dns-steps li + li {
  margin-top: 0.35rem;
}

.dns-steps code {
  font-size: 0.85em;
}

.dns-example-wrap {
  margin-top: 0.85rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dns-table-scroll {
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dns-example-label {
  margin-bottom: 0.5rem;
}

.dns-example-table {
  font-size: 0.85rem;
}

.domain-input-upper {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--mono);
}

.dns-example-table code {
  font-family: var(--mono);
  font-size: 0.9em;
}

.dns-verify-wrap {
  margin-top: 1rem;
}

.dns-verify-panel {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.dns-verify-panel.dns-verify-reveal {
  animation: domain-step-in 0.45s ease forwards;
}

.dns-verify-panel h4 {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.dns-verify-status {
  margin: 0.65rem 0 0.85rem;
  font-size: 0.86rem;
  color: var(--silver);
  line-height: 1.5;
}

.dns-verify-table {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.dns-verify-table th {
  width: 38%;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
}

.dns-verify-ok {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.06);
}

.dns-verify-ok .dns-verify-status { color: #6ee7b7; }

.dns-verify-warn,
.dns-verify-pending {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.dns-verify-warn .dns-verify-status,
.dns-verify-pending .dns-verify-status {
  color: var(--silver);
}

.dns-verify-fail {
  border-color: rgba(225, 6, 27, 0.35);
  background: rgba(225, 6, 27, 0.06);
}

.dns-verify-fail .dns-verify-status { color: var(--silver); }

.dns-verify-support,
.dns-verify-ssl {
  margin: 0.5rem 0 0;
}

.ssl-check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--silver);
  margin: 0.25rem 0 0.75rem;
  cursor: pointer;
}

.ssl-check-label input {
  margin-top: 0.2rem;
  accent-color: var(--red);
}

.site-ssl-detail {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Rubriques dashboard */
.dash-rubrics {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.dash-rubric {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.dash-rubric:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.dash-rubric.active {
  color: #fff;
  background: var(--red-dim);
  border-color: var(--border-red);
}

.dash-rubric-panel {
  display: none;
  animation: rubricIn 0.2s ease;
}

.dash-rubric-panel.active {
  display: block;
  scroll-margin-top: 5.5rem;
}

.panel-section,
.domain-link-panel,
.domain-sites-panel {
  scroll-margin-top: 5.5rem;
}

@keyframes rubricIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.rubriques-title {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--silver);
  margin-bottom: 1rem;
}

.rubriques-section {
  margin-top: 1rem;
}

/* Rubriques accueil */
.rubriques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 2rem 0;
}

.rubrique-card {
  display: block;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.rubrique-card:hover {
  border-color: var(--border-red);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.rubrique-card h3 {
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.35rem;
}

.rubrique-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

/* Dashboard stats */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dash-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all 0.2s;
}

.dash-stat:hover {
  border-color: var(--border-red);
  box-shadow: var(--shadow-red);
}

.dash-stat-val {
  font-family: var(--display);
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.dash-stat-val.cards { color: var(--red-bright); }

.dash-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--silver);
  margin-top: 0.5rem;
}

.dash-stat-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.panel h2 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--silver);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.panel h2::before { display: none; }

.panel h2 small {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
}

.panel-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.55;
}

.panel-section {
  margin-bottom: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.api-key-box {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  word-break: break-all;
  margin-bottom: 0.75rem;
  color: var(--red-bright);
}

.site-list { display: grid; gap: 0.75rem; }

.site-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
  transition: border-color 0.2s;
}

.site-item:hover { border-color: var(--border-red); }

.site-item.selected {
  border-color: var(--red);
  box-shadow: var(--shadow-red);
}

.site-domain-btn {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.site-domain-btn:hover strong {
  color: var(--red-bright);
}

.site-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0;
  word-break: break-all;
}

.site-item span {
  display: inline;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
}

.site-telegram-panel {
  margin-top: 0.5rem;
  animation: rubricIn 0.2s ease;
}

.site-telegram-panel h2 small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.telegram-notify-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.25rem 0 0.35rem;
}

.tg-notify-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, opacity 0.2s;
}

.tg-notify-toggle.is-off {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  opacity: 0.85;
}

.tg-notify-toggle-label {
  text-transform: uppercase;
}

.tg-notify-toggle-state {
  font-family: var(--mono);
  font-size: 0.68rem;
  opacity: 0.9;
}

.telegram-notify-hint {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.site-clicks-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--amber);
  background: rgba(251, 191, 36, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.site-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dns-example-wrap,
.stats-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.capture-sections {
  display: grid;
  gap: 1.35rem;
}

.capture-section-title {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
}

.capture-list {
  display: grid;
  gap: 0.75rem;
  max-height: 420px;
  overflow-y: auto;
}

.capture-list::-webkit-scrollbar { width: 5px; }
.capture-list::-webkit-scrollbar-track { background: transparent; }
.capture-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.capture-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.capture-item--cc {
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.capture-item--cc:hover {
  border-color: rgba(225, 6, 27, 0.45);
  background: rgba(225, 6, 27, 0.06);
}

.capture-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.72rem;
  color: var(--muted);
}

.capture-title {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.capture-victim {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.capture-meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.capture-when {
  font-family: var(--mono);
  font-size: 0.68rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.capture-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 1rem 0.55rem;
  font-size: 0.68rem;
  color: var(--muted);
  font-family: var(--mono);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.capture-open-hint {
  color: var(--red);
  font-weight: 500;
}

.capture-cc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.capture-cc-modal[hidden] {
  display: none !important;
}

.capture-cc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.capture-cc-dialog {
  position: relative;
  width: min(480px, 100%);
  max-height: 85vh;
  background: #121214;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.capture-cc-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.capture-cc-dialog-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.capture-cc-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}

.capture-cc-close:hover { color: var(--text); }

.capture-cc-body {
  margin: 0;
  padding: 1rem;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
  min-height: 0;
}

.capture-cc-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--border);
}

.capture-cc-dialog-foot .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
}

.capture-cc-dialog-foot .btn img {
  flex-shrink: 0;
  opacity: 0.95;
}

.capture-item pre {
  padding: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
  max-height: 180px;
  overflow-y: auto;
  color: #a8a8b0;
}

.capture-card-tag {
  color: var(--red-bright);
  font-weight: 600;
}

.empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.5rem;
  text-align: center;
  font-style: normal;
}

.inline-form { display: grid; gap: 0.85rem; }

.inline-form .row {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 0.75rem;
}

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

.stats-by-site {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.stats-by-site th,
.stats-by-site td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.stats-by-site th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.3);
}

.stats-by-site tr:last-child td { border-bottom: none; }

.stats-by-site td { background: transparent; }

.stats-by-site .num {
  font-family: var(--display);
  font-weight: 700;
  color: var(--red-bright);
}

.toast-stack {
  position: fixed;
  top: max(0.85rem, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: min(92vw, 28rem);
  pointer-events: none;
}

body.page-dashboard .toast-stack {
  top: calc(max(0.85rem, env(safe-area-inset-top, 0px)) + 3.75rem);
}

body.admin-body .toast-stack {
  top: calc(max(0.85rem, env(safe-area-inset-top, 0px)) + 1rem);
}

.toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(10, 10, 14, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-radius: 14px;
  color: #86efac;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(-16px) scale(0.98);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.toast.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
}

.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.toast-text {
  flex: 1;
  padding-top: 0.12rem;
  word-break: break-word;
}

.toast.error {
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
}

.toast.error .toast-icon {
  background: rgba(248, 113, 113, 0.2);
  color: #fca5a5;
}

/* ── Marketing pages ── */
.page-hero {
  text-align: center;
  padding: 2rem 0 2.5rem;
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: #fff;
}

.page-hero p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.65;
}

.page-hero .hero-line { margin-top: 0; }

.detail-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.detail-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: start;
  transition: border-color 0.2s;
}

.detail-item:hover { border-color: var(--border-red); }

.detail-icon {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--red-bright);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-dim);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-red);
}

.detail-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #fff;
}

.detail-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.detail-item ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.detail-item li { margin-bottom: 0.3rem; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: relative;
  transition: all 0.25s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pricing-card.featured {
  border-color: var(--border-red);
  box-shadow: var(--shadow-red);
}

.pricing-card.featured::before {
  content: "Populaire";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
}

.pricing-name {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.pricing-price {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.pricing-price span {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 1rem 0 1.5rem;
  line-height: 1.55;
}

.pricing-list {
  list-style: none;
  margin-bottom: 1.75rem;
}

.pricing-list li {
  font-size: 0.9rem;
  color: var(--silver);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  padding-left: 1.25rem;
  position: relative;
}

.pricing-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 0.8rem;
}

.pricing-card .btn,
.pricing-card .btn-primary { width: 100%; }

/* Licence hub (dashboard + page publique) */
.license-hub {
  padding: 1.5rem 1.35rem 1.35rem;
}

.license-hub-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.license-hub-head h1,
.license-hub-head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.license-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .license-pricing { grid-template-columns: 1fr; }
}

.license-pricing .pricing-card {
  padding: 1rem;
  margin: 0;
}

.pricing-card-pay {
  cursor: pointer;
}

.pricing-card-pay:hover {
  border-color: rgba(220, 38, 38, 0.45);
  transform: translateY(-2px);
}

.pricing-card-pay:focus-visible {
  outline: 2px solid rgba(220, 38, 38, 0.6);
  outline-offset: 2px;
}

.license-pricing .pricing-price {
  font-size: 1.75rem;
  margin: 0.35rem 0;
}

.license-expiry-line {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.license-expiry-line strong {
  color: var(--silver);
}

.license-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .license-hub-grid { grid-template-columns: 1fr; }
}

.license-hub-block h3 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  margin: 0 0 0.75rem;
}

.license-hub-public {
  margin-bottom: 2rem;
}

.license-guest-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.license-guest-note {
  margin-bottom: 0;
}

.ssl-auto-note {
  margin: 0.5rem 0 0.75rem;
  color: var(--silver);
}

.license-hub-block[hidden] {
  display: none !important;
}

/* Dashboard — sections bloquées sans licence */
.dash-license-lock-banner {
  background: rgba(225, 6, 27, 0.1);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.dash-license-lock-banner p {
  margin: 0;
  color: var(--silver);
  font-size: 0.9rem;
}

.dash-license-lock-banner strong {
  color: var(--red-bright);
}

.dash-locked-content.is-locked {
  opacity: 0.38;
  pointer-events: none;
  user-select: none;
  filter: grayscale(0.55);
}

.dash-rubric.dash-rubric-locked::after {
  content: '🔒';
  margin-left: 0.35rem;
  font-size: 0.75rem;
  opacity: 0.85;
}

.compare-table {
  width: 100%;
  min-width: 260px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.compare-table tr:last-child td,
.compare-table tr:last-child th { border-bottom: none; }

.compare-table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.3);
}

.compare-table .yes { color: var(--green); font-weight: 600; }
.compare-table .no { color: #444; }

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s;
}

.faq-item:hover { border-color: var(--border-hover); }

.faq-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.faq-item code {
  font-family: var(--mono);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--silver);
}

.support-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
}

.support-form-wrap,
.support-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.support-info {
  border-left: 3px solid var(--red);
}

.support-info h2 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  color: var(--silver);
}

.contact-line {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.contact-line:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.contact-line strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.contact-line span {
  font-size: 0.95rem;
  color: var(--silver);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.footer-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.footer-nav a:hover { color: var(--red-bright); }

.footer-nav a.footer-link-canal {
  color: #6ecbff;
}

.footer-nav a.footer-link-canal:hover {
  color: #fff;
}

/* ── Responsive (mobile · tablette · desktop) ── */
@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .license-hub-grid {
    grid-template-columns: 1fr;
  }

  .admin-stats,
  .admin-detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .stats-strip {
    gap: 0.65rem;
  }

  .stat {
    padding: 1.15rem 0.75rem;
  }

  .stat-val {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
  }

  .hero img.logo-lg {
    max-width: min(380px, 88vw);
  }

  .page-hero h1 {
    font-size: clamp(1.35rem, 5vw, 2rem);
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav.nav-landing.nav-landing-minimal {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 0.35rem 0 0.25rem;
    margin-bottom: 0.35rem;
  }

  .nav.nav-landing.nav-landing-minimal .nav-auth-links {
    width: auto;
    justify-content: flex-end;
    margin-left: auto;
  }

  .nav.nav-landing:not(.nav-landing-minimal) {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    min-height: 0;
    padding: 0.35rem 0 0.15rem;
    margin-bottom: 0.85rem;
  }

  .nav.nav-landing .brand-center {
    position: static;
    transform: none;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .nav.nav-landing .brand-center img {
    height: 46px;
    max-width: min(200px, 72vw);
  }

  .nav.nav-landing:not(.nav-landing-minimal) .nav-auth-links {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .nav {
    flex-wrap: nowrap;
    align-items: center;
    padding: 0.55rem clamp(0.85rem, 3.5vw, 1.5rem);
    margin-bottom: 1rem;
    gap: 0.5rem;
  }

  .nav-dashboard {
    flex-wrap: nowrap;
  }

  .nav-dashboard .brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  .nav-dashboard .nav-links {
    width: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.35rem;
    margin-left: auto;
  }

  .nav-dashboard .nav-link-support {
    padding: 0.4rem 0.65rem;
    font-size: 0.74rem;
    min-height: 36px;
    white-space: nowrap;
  }

  .nav-dashboard .nav-user {
    display: none;
  }

  .nav-dashboard .btn-nav-logout {
    min-height: 36px;
    padding: 0.4rem 0.65rem;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .brand img {
    height: 38px;
    max-width: 150px;
  }

  .nav:not(.nav-dashboard) .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
  }

  .nav-menu {
    display: flex;
    flex: 1 1 100%;
    order: 3;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    padding-top: 0.25rem;
  }

  .nav-link {
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .nav-user {
    max-width: 120px;
    font-size: 0.65rem;
  }

  .nav-links > .btn {
    min-height: 40px;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
  }

  .hero {
    padding: 1.25rem 0 2rem;
  }

  .hero p {
    font-size: 0.95rem;
    padding: 0 0.25rem;
  }

  .hero-actions {
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .dash-stats,
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .dash-rubrics {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }

  .dash-rubrics::-webkit-scrollbar {
    display: none;
  }

  .dash-rubric {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .dashboard-header h1 {
    font-size: 1rem;
  }

  .dash-rubrics {
    margin-bottom: 0.85rem;
  }

  .domain-link-head h2,
  .domain-sites-head h2 {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .domain-link-head .panel-desc,
  .domain-sites-head .panel-desc {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .site-item {
    flex-direction: column;
    align-items: stretch;
  }

  .site-actions {
    width: 100%;
  }

  .site-actions .btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    justify-content: center;
  }

  .detail-item {
    grid-template-columns: 1fr;
  }

  .panel-section,
  .panel {
    padding: 1.15rem;
  }

  .capture-list {
    max-height: none;
  }

  .capture-sections .capture-list {
    max-height: 280px;
  }
}

@media (max-width: 600px) {
  .scenario-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .domain-step {
    grid-template-columns: 1fr;
  }

  .domain-step-num {
    margin-top: 0;
    justify-self: start;
  }

  .domain-verify-row {
    flex-direction: column;
    align-items: stretch;
  }

  .domain-verify-row .btn,
  .domain-verify-row .input-lg {
    width: 100%;
  }

  .domain-verify-row .input-lg {
    flex: 0 0 auto;
  }

  .domain-verify-row .btn {
    align-self: auto;
    min-height: 42px;
  }

  .inline-form .row {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .rubriques-grid,
  .features {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    max-width: none;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .price-tag {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .form-actions .btn,
  .form-actions .btn-lg,
  .btn-lg {
    width: 100%;
    min-width: 0;
  }

  .btn-support-telegram,
  .btn-support-telegram-lg {
    width: 100%;
  }

  .site-actions .btn {
    flex: 1 1 100%;
  }

  .nav-links {
    justify-content: flex-end;
  }

  .page-dashboard .domain-form-steps,
  .page-dashboard .domain-form-simple {
    gap: 0;
  }

  .page-dashboard .dns-hint-compact {
    padding: 0.75rem;
  }

  .page-dashboard .btn-support-telegram {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.35;
    min-height: 48px;
  }

  .field-hint {
    word-break: break-word;
  }

  .page-dashboard .panel-desc {
    max-width: 100%;
  }

  .admin-stats,
  .admin-grid-2,
  .admin-inline-row {
    grid-template-columns: 1fr;
  }

  .admin-inline-row {
    display: grid;
  }

  .footer-nav {
    gap: 0.85rem 1.25rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
  }

  input,
  select,
  textarea,
  .btn {
    font-size: 16px;
  }

  .input-lg {
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .brand img {
    height: 32px;
    max-width: 120px;
  }

  .nav-dashboard .btn-nav-logout {
    font-size: 0.7rem;
    padding: 0.38rem 0.5rem;
  }

  .nav-dashboard .nav-link-support {
    font-size: 0.7rem;
    padding: 0.38rem 0.5rem;
  }

  .stat-val {
    font-size: 1.25rem;
  }
}

@media (min-width: 769px) and (max-width: 960px) {
  .stats-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── Admin panel ── */
.admin-body {
  background: var(--bg);
  color: var(--text);
}

.admin-body .wrap { position: relative; z-index: 1; }

.admin-body .fx-bg {
  z-index: 0;
}

.admin-gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.admin-gate[hidden],
.admin-app[hidden] {
  display: none !important;
}

.admin-app:not([hidden]) {
  display: flex;
}

.admin-app {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.admin-gate-card {
  width: 100%;
  max-width: 440px;
  text-align: center;
  padding: 2.25rem 1.85rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow), var(--shadow-red);
}

.admin-gate-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-bright), rgba(225, 6, 27, 0.25) 65%, transparent);
}

.admin-gate-logo {
  width: auto;
  max-width: min(180px, 62vw);
  height: auto;
  margin: 0 auto 0.5rem;
  display: block;
}

.admin-gate-card .hero-line {
  width: min(120px, 40%);
  margin: 0.75rem auto 1rem;
}

.admin-gate-card h1 {
  font-family: var(--display);
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.admin-gate-card .panel-desc {
  margin-bottom: 1.35rem;
  font-size: 0.88rem;
}

.admin-brand-tag {
  display: block;
  font-family: var(--display);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--red-bright);
  margin-top: 0.15rem;
  vertical-align: baseline;
  margin-left: 0;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.admin-header h1 {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-tab {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.admin-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.admin-tab.active {
  color: #fff;
  background: var(--red-dim);
  border-color: var(--border-red);
}

.admin-panel { display: none; animation: rubricIn 0.2s ease; }
.admin-panel.active { display: block; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.admin-stat-card:hover {
  border-color: var(--border-red);
  box-shadow: var(--shadow-red);
}

.admin-stat-card.tone-green { border-color: rgba(52, 211, 153, 0.35); }
.admin-stat-card.tone-green:hover { border-color: rgba(52, 211, 153, 0.55); box-shadow: 0 0 24px rgba(52, 211, 153, 0.12); }
.admin-stat-card.tone-red { border-color: rgba(225, 6, 27, 0.35); }
.admin-stat-card.tone-gold { border-color: rgba(251, 191, 36, 0.35); }
.admin-stat-card.tone-gold:hover { border-color: rgba(251, 191, 36, 0.55); box-shadow: 0 0 24px rgba(251, 191, 36, 0.1); }

.admin-stat-val {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.admin-stat-card.tone-green .admin-stat-val { color: var(--green); }
.admin-stat-card.tone-red .admin-stat-val { color: var(--red-bright); }
.admin-stat-card.tone-gold .admin-stat-val { color: var(--amber); }

.admin-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--silver);
  margin-top: 0.35rem;
}

.admin-stat-sub {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.admin-table th,
.admin-table td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.admin-table tr:last-child td,
.admin-table tr:last-child th { border-bottom: none; }

.admin-table th {
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.admin-table td.num { text-align: right; font-family: var(--mono); }
.admin-table td.num.cards { color: var(--red-bright); font-weight: 700; }

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.admin-section-head h2 { margin: 0; }

.admin-mini-list { display: grid; gap: 0.45rem; }

.admin-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-mini-row:hover {
  border-color: rgba(225, 6, 27, 0.3);
  background: rgba(225, 6, 27, 0.04);
}

.admin-mini-row small { color: var(--muted); }

.admin-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 1rem 0 0.65rem;
  color: var(--silver);
}

.admin-detail-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.admin-toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-search {
  min-width: 200px;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 0.85rem;
}

.admin-select {
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 0.85rem;
}

.admin-user-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.admin-user-head h2 { margin: 0 0 0.25rem; }

.admin-subtabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-subtab {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.admin-subtab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.admin-subtab.active {
  color: #fff;
  background: var(--red-dim);
  border-color: var(--border-red);
}

.admin-user-panel { display: none; }
.admin-user-panel.active { display: block; animation: rubricIn 0.2s ease; }

.admin-quick-plans {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.admin-user-row { cursor: pointer; }
.admin-user-row:hover td { background: rgba(255, 255, 255, 0.03); }

.btn.tone-danger {
  color: var(--red-bright);
  border-color: rgba(225, 6, 27, 0.35);
}

.btn.tone-danger:hover {
  background: rgba(225, 6, 27, 0.12);
}

.admin-inline-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.65rem;
  align-items: end;
}

.admin-generated-code {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-sm);
}

.admin-generated-code code {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--green);
}

.admin-capture-list {
  display: grid;
  gap: 0.75rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.admin-capture-item {
  border-radius: var(--radius-sm);
}

.admin-capture-item .gate-sealed,
.admin-capture-item .gate-revealed {
  margin: 0 1rem 0.85rem;
}

.admin-capture-item pre {
  max-height: 120px;
  overflow: auto;
}

.admin-filter-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
}

.admin-ticket-list { display: grid; gap: 0.75rem; }

.admin-ticket {
  padding: 1.1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}

.admin-ticket:hover {
  border-color: rgba(225, 6, 27, 0.35);
}

.admin-ticket header {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.admin-ticket-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.admin-ticket pre {
  font-size: 0.78rem;
  white-space: pre-wrap;
  color: var(--silver);
}

.gate-reveal-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-right: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.gate-reveal-toggle input { accent-color: var(--red); }

.gate-sealed {
  cursor: pointer;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  margin: 0;
}

.gate-sealed:hover { border-color: rgba(225, 6, 27, 0.45); color: var(--text); }

.gate-revealed {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  margin: 0;
  font-size: 0.82rem;
  white-space: pre-wrap;
}

.gate-entry-link {
  opacity: 0.15;
  font-size: 0.65rem;
  text-decoration: none;
  color: var(--muted);
}

.gate-entry-link:hover { opacity: 0.5; }

/* ── Admin sidebar (style Pulse Mail) ── */
.admin-shell {
  display: flex;
  min-height: 100vh;
  max-width: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.admin-sidebar {
  width: 252px;
  flex-shrink: 0;
  background: rgba(10, 10, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1rem 0.75rem;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 20;
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.35);
}

.admin-sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--red-bright), rgba(225, 6, 27, 0.15) 55%, transparent);
  pointer-events: none;
}

.admin-sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem 1.25rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
}

.admin-sidebar-brand img {
  width: auto;
  max-width: 140px;
  height: auto;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  overflow-y: auto;
}

.admin-nav-group {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 1rem 0.75rem 0.35rem;
  font-weight: 700;
}

.admin-sidebar-link {
  text-align: left;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.admin-sidebar-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.admin-sidebar-link.active {
  color: #fff;
  background: var(--red-dim);
  border-color: var(--border-red);
}

.admin-sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.admin-main {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 1.75rem 2.5rem;
  position: relative;
  z-index: 1;
  color: var(--text);
}

.admin-topbar.dashboard-header {
  margin-bottom: 1.5rem;
  width: 100%;
  align-items: center;
}

.admin-topbar.dashboard-header .admin-topbar-title h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.admin-topbar.dashboard-header .panel-desc.welcome {
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.admin-topbar.dashboard-header .panel-desc.welcome strong {
  color: var(--text);
  font-weight: 600;
}

.admin-topbar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.admin-topbar-title h1 {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-sidebar-toggle {
  display: none;
  font: inherit;
  font-size: 1.25rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.admin-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.admin-action-card {
  text-align: left;
  font: inherit;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.admin-action-card:hover {
  border-color: var(--border-red);
  box-shadow: var(--shadow-red);
  transform: translateY(-2px);
}

.admin-action-card strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.admin-action-card span {
  font-size: 0.75rem;
  color: var(--muted);
}

.admin-alerts { margin-bottom: 1rem; }

.admin-alert-banner {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
  color: #fcd34d;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.admin-copy-box {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
}

.admin-copy-box code {
  flex: 1;
  word-break: break-all;
  font-size: 0.8rem;
}

.admin-rec-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.7;
}

.admin-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  min-height: 120px;
  padding: 0.5rem 0;
}

.admin-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.admin-bar-fill {
  width: 100%;
  max-width: 36px;
  min-height: 6px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--red-bright), var(--red));
}

.admin-pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.admin-page-info {
  font-size: 0.8rem;
  color: var(--muted);
  margin-right: auto;
}

.admin-totals-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-total-pill {
  flex: 1;
  min-width: 140px;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-total-pill:hover {
  border-color: var(--border-red);
  box-shadow: var(--shadow-red);
}

.admin-total-pill span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.admin-total-pill strong {
  font-size: 1.35rem;
  font-family: var(--display);
}

.admin-total-pill.tone-red strong { color: var(--red-bright); }
.admin-total-pill.tone-gold strong { color: #fbbf24; }

.admin-totals-row td {
  background: rgba(255, 255, 255, 0.04);
  border-top: 2px solid var(--border-red);
  font-weight: 700;
}

.admin-table tfoot td { padding: 0.85rem 0.75rem; }

@media (max-width: 900px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.25s;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-sidebar-toggle { display: inline-block; }
  .admin-main { padding: 1rem; }
}

@media (max-width: 1024px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-detail-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ═══ Refonte dashboard utilisateur + admin (aligné landing) ═══ */
.wrap-dashboard {
  max-width: 920px;
}

.page-dashboard .nav.nav-dashboard-refined {
  position: relative;
  margin: 0 0 0.35rem;
  padding: 0.55rem 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.page-dashboard .nav.nav-dashboard-refined .nav-dashboard-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
}

.page-dashboard .nav.nav-dashboard-refined .nav-auth-links-start {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.page-dashboard .nav.nav-dashboard-refined .nav-auth-links-end {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-left: auto;
}

.page-dashboard .nav.nav-dashboard-refined .brand img {
  height: 40px;
  max-width: 168px;
  mix-blend-mode: lighten;
}

.page-dashboard .dashboard-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  margin-bottom: 1.35rem;
  padding: 0.25rem 0 0.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.page-dashboard .dashboard-hero-inner {
  width: 100%;
}

.page-dashboard .dashboard-hero .hero-line {
  width: 56px;
  margin: 0 auto 0.85rem;
}

.page-dashboard .dashboard-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.2rem, 4.5vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.35rem;
}

.page-dashboard .dashboard-hero .welcome {
  color: var(--muted);
  font-size: 0.88rem;
}

.page-dashboard .dash-rubrics-refined {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.35rem;
  margin-bottom: 1.35rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.page-dashboard .dash-rubrics-refined .dash-rubric {
  width: 100%;
  text-align: center;
  padding: 0.65rem 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
}

.page-dashboard .dash-rubrics-refined .dash-rubric.active {
  background: linear-gradient(180deg, rgba(225, 6, 27, 0.2) 0%, rgba(225, 6, 27, 0.08) 100%);
  box-shadow: var(--shadow-red);
}

.page-dashboard .dash-stats-refined {
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.page-dashboard .dash-stats-refined .dash-stat {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1rem;
  background: rgba(18, 18, 22, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.page-dashboard .dash-stats-refined .dash-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red-bright), rgba(225, 6, 27, 0.15) 70%, transparent);
  pointer-events: none;
}

.page-dashboard .dash-stats-refined .dash-stat:hover {
  transform: translateY(-2px);
}

.page-dashboard .panel-section,
.page-dashboard .panel,
.page-dashboard .license-hub {
  position: relative;
  overflow: hidden;
  background: rgba(16, 16, 20, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.page-dashboard .panel-section::before,
.page-dashboard .panel::before,
.page-dashboard .license-hub::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(225, 6, 27, 0.55), transparent 72%);
  pointer-events: none;
}

.page-dashboard .panel h2,
.page-dashboard .license-hub-head h2,
.page-dashboard .domain-link-head h2,
.page-dashboard .domain-sites-head h2 {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.65rem;
  color: var(--silver);
}

.page-dashboard .site-item {
  background: rgba(0, 0, 0, 0.32);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.page-dashboard .site-item:hover {
  transform: translateY(-1px);
}

.page-dashboard .site-telegram-panel {
  background: rgba(16, 16, 20, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}

.page-dashboard .capture-item {
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s, transform 0.2s;
}

.page-dashboard .capture-item--cc:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-red);
}

.page-dashboard .scenario-card[data-scenario="ameli"] .brand-preview-logo {
  max-height: clamp(1.55rem, 5vw, 2.35rem);
}

.page-dashboard .dash-rubric-panel.active {
  opacity: 1;
  transform: none;
}

/* Admin — refonte visuelle */
.admin-body .admin-sidebar {
  background: rgba(8, 8, 10, 0.9);
  border-right-color: rgba(255, 255, 255, 0.06);
}

.admin-body .admin-sidebar-brand img {
  mix-blend-mode: lighten;
}

.admin-body .admin-sidebar-link.active {
  background: linear-gradient(90deg, rgba(225, 6, 27, 0.18), rgba(225, 6, 27, 0.06));
  box-shadow: inset 2px 0 0 var(--red-bright);
  border-color: transparent;
}

.admin-body .admin-topbar-refined {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.35rem;
  background: rgba(16, 16, 20, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-body .admin-topbar-refined::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red-bright), rgba(225, 6, 27, 0.2) 65%, transparent);
  pointer-events: none;
}

.admin-body .admin-hero-line {
  width: 48px;
  margin: 0 0 0.65rem;
}

.admin-body .admin-stat-card {
  position: relative;
  overflow: hidden;
  background: rgba(16, 16, 20, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.admin-body .admin-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}

.admin-body .admin-stat-card.tone-red::before {
  background: linear-gradient(90deg, var(--red-bright), transparent);
}

.admin-body .admin-stat-card.tone-green::before {
  background: linear-gradient(90deg, var(--green), transparent);
}

.admin-body .admin-stat-card.tone-gold::before {
  background: linear-gradient(90deg, var(--amber), transparent);
}

.admin-body .admin-main .panel-section,
.admin-body .admin-main .panel {
  position: relative;
  overflow: hidden;
  background: rgba(16, 16, 20, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.admin-body .admin-main .panel-section::before,
.admin-body .admin-main .panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(225, 6, 27, 0.45), transparent 70%);
  pointer-events: none;
}

.admin-body .admin-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
}

.admin-body .admin-ticket,
.admin-body .admin-capture-item {
  background: rgba(16, 16, 20, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.admin-body .admin-gate-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(16, 16, 20, 0.88);
}

.admin-body .admin-gate-logo {
  mix-blend-mode: lighten;
}

.admin-body .admin-quick-actions .btn {
  border-radius: 999px;
}

@media (max-width: 768px) {
  .page-dashboard .dash-rubrics-refined {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
    overflow: visible;
    margin-bottom: 0.85rem;
  }

  .page-dashboard .dash-rubrics-refined .dash-rubric {
    width: 100%;
    min-width: 0;
    flex: unset;
    padding: 0.55rem 0.4rem;
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .page-dashboard .dashboard-hero {
    margin-bottom: 0.85rem;
    padding-bottom: 0.15rem;
    gap: 0.65rem;
  }

  .page-dashboard .dashboard-hero h1 {
    font-size: 1.05rem;
  }

  .page-dashboard .dashboard-hero .hero-line {
    width: 40px;
    margin-bottom: 0.5rem;
  }

  .page-dashboard .nav.nav-dashboard-refined {
    position: relative;
    top: auto;
    margin-bottom: 0.15rem;
    padding: 0.35rem 0;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .page-dashboard .nav.nav-dashboard-refined .nav-dashboard-left {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.45rem;
  }

  .page-dashboard .nav.nav-dashboard-refined .nav-auth-links-end {
    margin-left: auto;
    flex-shrink: 0;
  }

  .page-dashboard .panel-section,
  .page-dashboard .panel,
  .page-dashboard .license-hub {
    overflow: visible;
  }

  .domain-link-head {
    flex-direction: column;
    align-items: stretch;
  }

  .domain-link-head-actions {
    width: 100%;
  }

  .domain-link-head-actions .btn {
    flex: 1 1 auto;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .page-dashboard .dash-rubrics-refined {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-wrap: unset;
    overflow: visible;
    overflow-x: visible;
  }

  .page-dashboard .dash-rubrics-refined .dash-rubric {
    flex: unset;
    min-width: 0;
    width: 100%;
  }
}

@media (max-height: 720px) and (max-width: 900px) {
  .page-dashboard .dashboard-hero .fx-notify-toggle,
  .page-dashboard .dashboard-hero .fx-notify-toggle.btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
  }

  .page-dashboard .dash-rubrics-refined {
    padding: 0.25rem;
    gap: 0.25rem;
  }

  .page-dashboard .dash-rubrics-refined .dash-rubric {
    padding: 0.45rem 0.35rem;
  }

  .page-dashboard .panel-section,
  .page-dashboard .panel {
    padding: 1rem;
  }
}
