/* Nitro Quant — multi-tenant platform UI
   Design language: dark glass, neon teal/violet accents, soft grid floor,
   clear hierarchical 2D layout (Sora display + Manrope body), no 3D scroll
   gimmicks — performance and clarity over flash.
*/

:root {
  --bg-0: #04070d;
  --bg-1: #060c18;
  --bg-2: #0a1424;
  --panel: rgba(13, 22, 38, 0.78);
  --panel-strong: rgba(15, 26, 44, 0.92);
  --border: rgba(85, 169, 219, 0.16);
  --border-strong: rgba(124, 199, 245, 0.32);
  --text: #e2ecf8;
  --text-soft: #b6c6db;
  --text-mute: #7c92ad;
  --teal: #25d6d2;
  --teal-soft: rgba(37, 214, 210, 0.16);
  --violet: #a37bff;
  --violet-soft: rgba(163, 123, 255, 0.18);
  --green: #5ce0a7;
  --red: #ff6b8b;
  --amber: #ffc36e;
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(124, 199, 245, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html, body {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
}

body.ns-page {
  margin: 0;
  font-family: 'Manrope', 'Inter', 'Segoe UI', sans-serif;
  background: radial-gradient(ellipse at top, #081325 0%, var(--bg-0) 60%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  display: flex;
  flex-direction: column;
}
body.ns-page > .ns-main { flex: 1 0 auto; }
body.ns-page > .ns-footer { flex-shrink: 0; }

img, canvas, svg, video {
  max-width: 100%;
  max-height: 100%;
}

/* --- Animated background ----------------------------------------------- */
.ns-bg {
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(37, 214, 210, 0.12), transparent 60%),
    radial-gradient(800px 700px at 90% 0%, rgba(163, 123, 255, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  z-index: -3;
}
.ns-orbit { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.ns-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 24%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px 1px at 68% 12%, rgba(180,200,255,0.55), transparent 60%),
    radial-gradient(2px 2px at 35% 78%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 84% 64%, rgba(180,220,255,0.6), transparent 60%),
    radial-gradient(1px 1px at 22% 60%, rgba(255,255,255,0.4), transparent 60%);
  opacity: 0.7;
}
.ns-grid-floor {
  position: absolute; left: 0; right: 0; bottom: -120px; height: 360px;
  background-image:
    linear-gradient(rgba(37,214,210,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,214,210,0.12) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px;
  transform: perspective(700px) rotateX(60deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, black, transparent);
}
.ns-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(140px); opacity: 0.55; }
.ns-glow-a { background: var(--teal); top: 10%; left: -120px; }
.ns-glow-b { background: var(--violet); top: 30%; right: -160px; }

/* --- Top bar ----------------------------------------------------------- */
.ns-topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 32px;
  backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(180deg, rgba(6, 12, 24, 0.85), rgba(6, 12, 24, 0.55));
  border-bottom: 1px solid var(--border);
}
.ns-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.ns-brand-mark {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 20px;
  background: linear-gradient(135deg, rgba(37,214,210,0.32), rgba(163,123,255,0.32));
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 20px rgba(37,214,210,0.25), inset 0 0 14px rgba(163,123,255,0.18);
}
.ns-brand-mark small { font-size: 11px; opacity: 0.85; margin-left: -2px; }
.ns-brand-mark-logo {
  padding: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: 0 0 24px rgba(37,214,210,0.25);
  overflow: hidden;
}
.ns-brand-mark-logo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.ns-brand-text strong { font-family: 'Sora', sans-serif; font-size: 17px; letter-spacing: 0.02em; display: block; }
.ns-brand-text em { font-style: normal; font-size: 12px; color: var(--text-mute); }

.ns-nav { display: flex; align-items: center; gap: 4px; }
.ns-nav a {
  text-decoration: none; color: var(--text-soft);
  padding: 9px 14px; border-radius: 10px;
  font-weight: 500; font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}
.ns-nav a:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.ns-nav a.is-active { color: var(--teal); background: var(--teal-soft); }
.ns-nav .ns-nav-cta {
  margin-left: 10px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--violet) 100%);
  color: #0a1124; font-weight: 700;
  border-radius: 12px; padding: 10px 18px;
  box-shadow: 0 10px 24px rgba(37, 214, 210, 0.25);
}
.ns-nav .ns-lang-switch {
  margin-left: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--text-mute);
  border: 1px solid var(--border);
  background: rgba(8,14,26,0.6);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.ns-nav .ns-lang-switch:hover {
  color: var(--teal);
  border-color: rgba(37,214,210,0.4);
  background: rgba(37,214,210,0.06);
}
.ns-lang-current { color: var(--teal); }
.ns-lang-arrow   { opacity: 0.5; font-size: 10px; }
.ns-lang-next    { opacity: 0.7; }
.ns-nav .ns-lang-switch:hover .ns-lang-arrow { opacity: 1; }

.ns-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 14, 26, 0.82);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.ns-nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
body.ns-nav-open .ns-nav-toggle span:nth-child(1),
.ns-topbar.is-open .ns-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.ns-nav-open .ns-nav-toggle span:nth-child(2),
.ns-topbar.is-open .ns-nav-toggle span:nth-child(2) { opacity: 0; }
body.ns-nav-open .ns-nav-toggle span:nth-child(3),
.ns-topbar.is-open .ns-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Main + sections ---------------------------------------------------- */
.ns-main {
  max-width: 1320px; margin: 0 auto;
  padding: 36px 32px 80px;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
}

.ns-section {
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
}
.ns-section-head h2 { font-family: 'Sora', sans-serif; font-size: 22px; margin: 0 0 4px; }
.ns-section-head p { color: var(--text-mute); margin: 0 0 16px; }

.ns-grid {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
}
.ns-grid > * {
  min-width: 0;
  min-height: 0;
}
.ns-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ns-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ns-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ns-grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.ns-span-4 { grid-column: span 4; }
.ns-span-5 { grid-column: span 5; }
.ns-span-6 { grid-column: span 6; }
.ns-span-7 { grid-column: span 7; }
.ns-span-12 { grid-column: span 12; }

/* --- Cards -------------------------------------------------------------- */
.ns-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
}
.ns-card > * {
  min-width: 0;
  min-height: 0;
  max-width: 100%;
}
.ns-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(37,214,210,0.06), transparent 40%);
  pointer-events: none;
}
.ns-card h2 { margin: 0 0 14px; font-family: 'Sora', sans-serif; font-size: 18px; }
.ns-card h3 { margin: 0 0 10px; font-family: 'Sora', sans-serif; font-size: 15px; color: var(--text-soft); }
.ns-card p { margin: 0 0 12px; color: var(--text-soft); line-height: 1.55; }
.ns-card code { background: rgba(124, 199, 245, 0.1); padding: 2px 6px; border-radius: 6px; font-size: 12.5px; }
.ns-card-glass {
  background: linear-gradient(150deg, rgba(15, 28, 50, 0.92) 0%, rgba(8, 16, 32, 0.78) 100%);
  border: 1px solid var(--border-strong);
}
.ns-card-icon {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 18px; margin-bottom: 12px;
  background:
    radial-gradient(circle at 30% 25%, rgba(96, 176, 236, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(31, 60, 95, 0.92) 0%, rgba(24, 43, 71, 0.96) 100%);
  border: 1px solid rgba(118, 176, 226, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 18px rgba(6, 12, 24, 0.28);
}
.ns-card-icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ns-card-icon svg[data-solid="1"] {
  fill: currentColor;
  stroke: none;
}
.ns-card-icon-ai {
  color: #ffb14d;
  border-color: rgba(109, 170, 229, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 22px rgba(255, 145, 62, 0.12);
}
.ns-card-icon-sec {
  color: #bfd3ea;
  border-color: rgba(122, 178, 222, 0.26);
}
.ns-card-icon-net {
  color: #35d4ff;
  border-color: rgba(70, 196, 255, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 22px rgba(35, 209, 255, 0.12);
}

.ns-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.ns-card-head h2 { margin: 0; }

/* --- Hero --------------------------------------------------------------- */
.ns-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: stretch;
  margin-top: 8px;
}
.ns-eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px;
  color: var(--teal); margin: 0 0 14px;
}
.ns-h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.05; margin: 0 0 18px; letter-spacing: -0.01em;
  max-width: 100%;
}
.ns-h1-code {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ns-grad {
  background: linear-gradient(120deg, var(--teal), var(--violet) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ns-lead { font-size: 17px; color: var(--text-soft); max-width: 56ch; line-height: 1.55; }
.ns-hero-cta { display: flex; gap: 12px; margin: 22px 0 18px; flex-wrap: wrap; align-items: center; }
.ns-btn-market {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  min-width: 182px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid rgba(124, 199, 245, 0.22);
  background:
    linear-gradient(180deg, rgba(13, 20, 36, 0.98), rgba(9, 14, 26, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 10px 22px rgba(2, 8, 20, 0.22);
  color: var(--text);
}
.ns-btn-market:hover {
  border-color: rgba(37, 214, 210, 0.34);
  background:
    linear-gradient(180deg, rgba(16, 24, 42, 0.98), rgba(11, 17, 31, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 14px 28px rgba(8, 18, 36, 0.3),
    0 0 0 1px rgba(37, 214, 210, 0.08);
}
.ns-btn-market span[aria-hidden="true"] {
  font-size: 0;
  opacity: 1;
}
.ns-btn-market span[aria-hidden="true"]::before {
  content: "↗";
  font-size: 15px;
  line-height: 1;
}
.ns-btn-market[href*="hyrotrader"] span[aria-hidden="true"]::before {
  content: "→";
}
.ns-btn-market span[aria-hidden="true"]::before {
  content: "\2197";
}
.ns-btn-market[href*="hyrotrader"] span[aria-hidden="true"]::before {
  content: "\2192";
}
.ns-home-subscription-note { margin-top: -6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ns-btn-market[href*="hyrotrader"] span[aria-hidden="true"]::before {
  content: "\2197";
}

.ns-ai-spotlight {
  margin: 6px 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(37, 214, 210, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(124, 199, 245, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(6, 15, 28, 0.92), rgba(5, 11, 22, 0.96));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}
.ns-ai-spotlight-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.ns-ai-spotlight-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(124, 199, 245, 0.3);
  background: rgba(124, 199, 245, 0.14);
  color: #d9f2ff;
  font: 800 11px/1 Manrope, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ns-ai-spotlight-title {
  margin: 0;
  font: 800 17px/1.2 Sora, sans-serif;
  color: var(--text);
}
.ns-ai-spotlight-copy {
  margin: 0;
  max-width: 66ch;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}
.ns-ai-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.ns-ai-spotlight-item {
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.ns-ai-spotlight-item strong {
  display: block;
  margin-bottom: 5px;
  font: 800 11px/1.2 Manrope, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
.ns-ai-spotlight-item span {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}
.ns-ai-section .ns-ai-spotlight {
  margin: 0;
}
.ns-ai-pills {
  margin-top: 18px;
}

.ns-hero-pills { list-style: none; display: flex; gap: 16px; padding: 0; margin: 0; flex-wrap: wrap; color: var(--text-soft); font-size: 13.5px; }
.ns-hero-pills li { display: inline-flex; align-items: center; gap: 8px; }
.ns-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-mute); display: inline-block; }
.ns-dot-on { background: var(--green); box-shadow: 0 0 12px var(--green); }

.ns-hero-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ns-hero-card-head h3 { margin: 0; font-size: 16px; }
.ns-kv { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.ns-kv > div { display: flex; flex-direction: column; gap: 2px; }
.ns-kv dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); margin: 0; }
.ns-kv dd { margin: 0; font-family: 'Sora', sans-serif; font-size: 18px; color: var(--text); }
.ns-hero-card-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border); }

/* --- Hero cinematic (orbital + bloom + horizon) ----------------------- */
.ns-hero-cinema { position: relative; overflow: hidden; isolation: isolate; min-height: 540px; align-items: center; }
.ns-hero-cinema > .ns-hero-copy,
.ns-hero-cinema > .ns-orb-panel { position: relative; z-index: 2; }

.ns-hero-sub {
  font-family: 'Sora', sans-serif;
  font-size: 22px; font-weight: 700; line-height: 1.25;
  color: var(--teal);
  margin: 8px 0 14px;
}
.ns-hero-bullets { list-style: none; padding: 0; margin: 12px 0 22px; display: flex; flex-direction: column; gap: 8px; }
.ns-hero-bullets li {
  position: relative; padding-left: 18px;
  font-size: 14px; color: var(--text-soft);
}
.ns-hero-bullets li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 8px var(--teal);
}

/* Bloom particles (soft floating circles in background) */
.ns-cinema-bloom { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.ns-cinema-bloom span {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  background: radial-gradient(circle, rgba(37,214,210,0.42) 0%, rgba(37,214,210,0.10) 40%, transparent 70%);
  animation-name: ns-bloom-drift;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.ns-cinema-bloom span:nth-child(3n)   { background: radial-gradient(circle, rgba(163,123,255,0.42) 0%, rgba(163,123,255,0.10) 40%, transparent 70%); }
.ns-cinema-bloom span:nth-child(5n+2) { background: radial-gradient(circle, rgba(124,199,245,0.42) 0%, rgba(124,199,245,0.10) 40%, transparent 70%); }
@keyframes ns-bloom-drift {
  0%, 100% { transform: translate(0, 0)     scale(1);    }
  33%      { transform: translate(20px, -18px) scale(1.05); }
  66%      { transform: translate(-15px, 12px) scale(0.95); }
}


/* Orbital animation panel */
.ns-orb-panel { display: flex; align-items: center; justify-content: center; padding: 12px; }
.ns-orb-frame {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(37,214,210,0.45);
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(8,14,26,0.45) 0%, rgba(8,14,26,0.85) 70%);
  box-shadow:
    inset 0 0 80px rgba(37,214,210,0.06),
    0 12px 60px rgba(0,0,0,0.55);
}
.ns-orb-corner {
  position: absolute; width: 22px; height: 22px;
  border: 2px solid var(--teal);
  filter: drop-shadow(0 0 6px rgba(37,214,210,0.7));
}
.ns-orb-corner-tl { top: -1px; left: -1px;  border-right: none; border-bottom: none; border-top-left-radius: 18px; }
.ns-orb-corner-tr { top: -1px; right: -1px; border-left: none;  border-bottom: none; border-top-right-radius: 18px; }
.ns-orb-corner-bl { bottom: -1px; left: -1px;  border-right: none; border-top: none; border-bottom-left-radius: 18px; }
.ns-orb-corner-br { bottom: -1px; right: -1px; border-left: none;  border-top: none; border-bottom-right-radius: 18px; }

.ns-orb-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}

.ns-orb-glow {
  position: absolute; z-index: 1;
  width: 285px; height: 285px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,214,210,0.20) 0%, rgba(37,214,210,0.065) 42%, transparent 74%);
  filter: blur(18px);
  animation: ns-orb-glow-pulse 4s ease-in-out infinite;
}
@keyframes ns-orb-glow-pulse {
  0%, 100% { opacity: 0.42; transform: scale(1);    }
  50%      { opacity: 0.68; transform: scale(1.04); }
}

/* Central dynamic logo rotor */
.ns-orb-sphere {
  position: relative; z-index: 4;
  width: 270px; height: 270px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,0.10) 0%, transparent 28%),
    radial-gradient(circle at 50% 50%, #0a131f 0%, #06101e 55%, #020812 100%);
  box-shadow:
    inset 0 4px 16px rgba(255,255,255,0.04),
    inset 0 -12px 24px rgba(0,0,0,0.65),
    inset 0 0 0 1px rgba(37,214,210,0.55),
    0 0 24px rgba(37,214,210,0.40),
    0 0 52px rgba(37,214,210,0.18);
  display: flex; align-items: center; justify-content: center;
  animation: ns-orb-sphere-breathe 4s ease-in-out infinite;
}
@keyframes ns-orb-sphere-breathe {
  0%, 100% { box-shadow: inset 0 4px 16px rgba(255,255,255,0.04), inset 0 -12px 24px rgba(0,0,0,0.65), inset 0 0 0 1px rgba(37,214,210,0.55), 0 0 24px rgba(37,214,210,0.40), 0 0 52px rgba(37,214,210,0.18); }
  50%      { box-shadow: inset 0 4px 16px rgba(255,255,255,0.05), inset 0 -12px 24px rgba(0,0,0,0.65), inset 0 0 0 1px rgba(37,214,210,0.70), 0 0 30px rgba(37,214,210,0.52), 0 0 68px rgba(37,214,210,0.24); }
}
.ns-orb-sphere-ring {
  position: absolute; inset: 24px;
  border-radius: 50%;
  border: 1px solid rgba(37,214,210,0.36);
  pointer-events: none;
}
.ns-logo-rotor {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  pointer-events: none;
  animation: ns-logo-rotor-spin 10s linear infinite;
  filter: drop-shadow(0 0 10px rgba(37,214,210,0.36));
}
.ns-logo-rotor::before,
.ns-logo-rotor::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.ns-logo-rotor::before {
  background:
    conic-gradient(
      from 18deg,
      transparent 0deg,
      rgba(37,214,210,0.08) 24deg,
      rgba(37,214,210,0.78) 44deg,
      rgba(124,199,245,0.82) 58deg,
      transparent 86deg,
      transparent 205deg,
      rgba(163,123,255,0.56) 232deg,
      transparent 270deg,
      rgba(37,214,210,0.32) 330deg,
      transparent 360deg
    );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}
.ns-logo-rotor::after {
  inset: 18px;
  border: 1px solid rgba(124,199,245,0.13);
  box-shadow:
    inset 0 0 22px rgba(37,214,210,0.055),
    0 0 18px rgba(37,214,210,0.07);
}
.ns-logo-rotor-dot {
  --dot-angle: 0deg;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px;
  border-radius: 50%;
  background: #25d6d2;
  box-shadow: 0 0 10px #25d6d2, 0 0 20px rgba(37,214,210,0.46);
  transform: rotate(var(--dot-angle)) translateX(136px);
}
.ns-logo-rotor-dot-a { --dot-angle: 18deg; }
.ns-logo-rotor-dot-b {
  --dot-angle: 156deg;
  width: 6px;
  height: 6px;
  margin: -3px;
  background: #a37bff;
  box-shadow: 0 0 9px #a37bff, 0 0 18px rgba(163,123,255,0.42);
}
.ns-logo-rotor-dot-c {
  --dot-angle: 292deg;
  width: 7px;
  height: 7px;
  margin: -3.5px;
  background: #5ce0a7;
  box-shadow: 0 0 9px #5ce0a7, 0 0 18px rgba(92,224,167,0.40);
}
@keyframes ns-logo-rotor-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.ns-orb-sphere-inner {
  width: 220px; height: 220px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(37,214,210,0.18) 0%, transparent 35%),
    radial-gradient(circle at 50% 60%, #050d18 0%, #020812 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,0.6),
    inset 0 0 12px rgba(37,214,210,0.25),
    0 0 8px rgba(37,214,210,0.45);
  border: 1px solid rgba(37,214,210,0.45);
}
.ns-orb-sphere-inner img {
  width: 108%;
  height: 108%;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.ns-orb-label {
  position: absolute;
  bottom: 22px; left: 50%; transform: translateX(-50%);
  font-family: 'Manrope', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(124,199,245,0.85);
  text-shadow: 0 0 12px rgba(37,214,210,0.4);
  z-index: 5;
}

/* Stats strip under hero */
.ns-stats-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: rgba(124,199,245,0.10);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 18px;
}
.ns-stat-cell {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px;
  background: rgba(8,14,26,0.75);
}
.ns-stat-cell span {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mute);
}
.ns-stat-cell strong {
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: 19px; color: var(--text);
}

@media (max-width: 1080px) {
  .ns-stats-strip { grid-template-columns: repeat(3, 1fr); }
  .ns-orb-frame { max-width: 360px; }
}
@media (max-width: 640px) {
  .ns-stats-strip { grid-template-columns: repeat(2, 1fr); }
  .ns-orb-frame { max-width: 280px; }
  .ns-orb-ring-3 { display: none; }
}

/* --- Buttons ----------------------------------------------------------- */
.ns-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 14px;
  text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  background: rgba(255,255,255,0.04); color: var(--text);
}
.ns-btn:hover { transform: translateY(-1px); }
.ns-btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--violet));
  color: #07101e;
  box-shadow: 0 14px 28px rgba(37,214,210,0.3);
}
.ns-btn-ghost { border-color: var(--border-strong); color: var(--text-soft); }
.ns-btn-ghost:hover { background: rgba(124, 199, 245, 0.08); color: var(--text); }
.ns-btn-danger { background: rgba(255, 107, 139, 0.12); color: var(--red); border-color: rgba(255, 107, 139, 0.3); }
.ns-btn-block { width: 100%; }
.ns-btn-sm { padding: 8px 14px; font-size: 12.5px; border-radius: 10px; }

/* --- Pills / badges ---------------------------------------------------- */
.ns-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px; border-radius: 999px; font-size: 12px;
  background: rgba(124, 199, 245, 0.1); color: var(--text-soft);
  border: 1px solid var(--border);
}
.ns-pill-on { background: rgba(92, 224, 167, 0.15); color: var(--green); border-color: rgba(92, 224, 167, 0.3); }
.ns-pill-off { background: rgba(255, 107, 139, 0.12); color: var(--red); border-color: rgba(255, 107, 139, 0.3); }
.ns-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,0.05); color: var(--text-soft); border: 1px solid var(--border);
}
.ns-badge-accent { color: var(--teal); border-color: var(--border-strong); background: var(--teal-soft); }
.ns-badge-accent.is-on   { color: var(--green); border-color: rgba(92,224,167,0.4);  background: rgba(92,224,167,0.12); }
.ns-badge-accent.is-off  { color: var(--text-mute); border-color: var(--border); background: rgba(124,199,245,0.06); }
.ns-badge-accent.is-down { color: var(--red);   border-color: rgba(255,107,139,0.4); background: rgba(255,107,139,0.12); }
.ns-state { font-weight: 700; }
.ns-state-on { color: var(--green); }
.ns-state-off { color: var(--amber); }

/* --- Architecture diagram ---------------------------------------------- */
.ns-arch {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(180deg, rgba(15, 28, 50, 0.7), rgba(8, 14, 26, 0.55));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  flex-wrap: wrap;
}
.ns-arch-col { flex: 1; min-width: 180px; display: grid; gap: 12px; }
.ns-arch-arrow { font-size: 22px; color: var(--teal); opacity: 0.7; }
.ns-arch-node {
  border-radius: 14px; padding: 14px 16px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(140deg, rgba(37,214,210,0.08), rgba(163,123,255,0.05));
}
.ns-arch-node strong { display: block; font-family: 'Sora', sans-serif; font-size: 14.5px; }
.ns-arch-node small { color: var(--text-mute); font-size: 12px; }
.ns-arch-node-platform { border-color: rgba(163,123,255,0.4); }
.ns-arch-node-snapshot { border-color: rgba(124,199,245,0.4); }
.ns-arch-node-engine { border-color: rgba(37,214,210,0.5); }
.ns-arch-broadcast { background: linear-gradient(140deg, rgba(37,214,210,0.18), rgba(37,214,210,0.05)); }
.ns-arch-node-exch { border-color: rgba(255,195,110,0.4); background: linear-gradient(140deg, rgba(255,195,110,0.1), rgba(255,107,139,0.04)); }
.ns-arch-link {
  display: block; text-decoration: none; color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.ns-arch-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255,195,110,0.7);
  box-shadow: 0 8px 28px rgba(255,195,110,0.15);
}
.ns-ext-icon {
  display: inline-block; margin-left: 4px;
  font-size: 0.85em; color: var(--teal); opacity: 0.75;
}
.ns-btn-ext { gap: 6px; }
.ns-btn-ext span { opacity: 0.7; transition: transform 0.15s ease; }
.ns-btn-ext:hover span { transform: translate(2px, -2px); opacity: 1; }

/* --- Auth pages -------------------------------------------------------- */
.ns-auth-wrap {
  /* Mini 480, idéal 38% de la largeur viewport, max 760px */
  width: clamp(480px, 38vw, 760px);
  margin: 40px auto 80px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.ns-auth-wrap-wide { width: clamp(560px, 48vw, 880px); }

.ns-auth-rules {
  font-size: 12.5px; color: var(--text-mute);
  margin: -4px 0 8px;
}

.ns-disclaimer-card {
  background: rgba(2,8,18,0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 10px 0;
}
.ns-disclaimer-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 10px;
}
.ns-disclaimer-card p { font-size: 13px; color: var(--text-soft); margin: 6px 0; line-height: 1.5; }
.ns-disclaimer-card ul { margin: 8px 0; padding-left: 18px; font-size: 13px; color: var(--text-soft); }
.ns-disclaimer-card li { margin: 4px 0; line-height: 1.45; }
.ns-disclaimer-version {
  font-family: 'Manrope', sans-serif;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal);
  margin: 10px 0 4px;
}
.ns-disclaimer-link {
  display: inline-block; margin-top: 4px;
  font-size: 13px; font-weight: 600;
  color: var(--text); text-decoration: none;
}
.ns-disclaimer-link:hover { color: var(--teal); }

.ns-checkbox-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: rgba(2,8,18,0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 4px 0 8px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text);
}
.ns-checkbox-row input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--teal);
  cursor: pointer;
  margin: 0;
}
.ns-auth-head {
  text-align: center;
  margin-bottom: 28px;
  width: 100%;
  max-width: 100%;
}
.ns-auth-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--teal);
  text-shadow: 0 0 18px rgba(37,214,210,0.5);
  margin: 0 0 10px;
}
.ns-auth-title {
  font-family: 'Sora', sans-serif;
  /* Tient dans la largeur du wrap (520px) même pour les mots longs comme "Réinitialisation" */
  font-size: clamp(36px, 5.2vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 auto;
  color: var(--text);
  letter-spacing: -0.02em;
  word-break: break-word;
  max-width: 100%;
}
.ns-auth-card-glow {
  padding: 36px 32px;
}
.ns-auth-card-glow .ns-form label span {
  font-size: 13px; font-weight: 700; color: var(--text);
  margin-bottom: 6px; display: block;
}
.ns-auth-card-glow .ns-form input {
  background: rgba(2,8,18,0.85);
  border: 1px solid rgba(124,199,245,0.18);
  padding: 14px 16px; border-radius: 12px;
  font-size: 14px; color: var(--text);
}
.ns-auth-card-glow .ns-form input::placeholder { color: rgba(124,199,245,0.35); }
.ns-auth-card-glow .ns-form input:focus {
  outline: none;
  border-color: rgba(37,214,210,0.55);
  box-shadow: 0 0 0 3px rgba(37,214,210,0.12);
}
.ns-btn-lg { padding: 14px 22px; font-size: 14px; }
.ns-auth-links {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 6px; margin-top: 14px;
}
.ns-auth-link {
  font-size: 13px; color: var(--text-soft);
  text-decoration: none; transition: color 0.15s ease;
}
.ns-auth-link:hover { color: var(--teal); }
.ns-auth-card h1 { font-family: 'Sora', sans-serif; font-size: 28px; margin: 0 0 6px; }
.ns-auth-sub { color: var(--text-mute); margin: 0 0 22px; }
.ns-auth-foot { margin-top: 14px; color: var(--text-mute); font-size: 13.5px; text-align: center; }
.ns-auth-foot a { color: var(--teal); text-decoration: none; }
.ns-password-toggle-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.ns-password-toggle-wrap input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 52px;
}
.ns-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(124,199,245,0.16);
  border-radius: 10px;
  padding: 0;
  background: rgba(9,17,31,0.72);
  color: rgba(226,236,248,0.78);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ns-password-toggle:hover {
  background: rgba(37,214,210,0.12);
  border-color: rgba(37,214,210,0.28);
  color: var(--text);
}
.ns-password-toggle:focus-visible {
  outline: none;
  border-color: rgba(37,214,210,0.45);
  box-shadow: 0 0 0 3px rgba(37,214,210,.18);
}
.ns-auth-card-glow .ns-password-toggle-wrap {
  width: 100%;
}
.ns-auth-card-glow .ns-password-toggle-wrap input {
  width: 100%;
  min-height: 52px;
  padding-right: 58px;
}
.ns-auth-card-glow .ns-password-toggle {
  right: 12px;
}
.ns-password-toggle-eye {
  position: relative;
  width: 18px;
  height: 12px;
  border: 1.8px solid currentColor;
  border-radius: 18px / 12px;
}
.ns-password-toggle-eye::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.ns-password-toggle-slash {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-35deg);
  opacity: 1;
  transition: opacity .15s ease;
}
.ns-password-toggle[aria-pressed="true"] .ns-password-toggle-slash {
  opacity: 0;
}

/* --- Forms ------------------------------------------------------------- */
.ns-form { display: grid; gap: 14px; }
.ns-form-compact { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(124,199,245,0.14); }
.ns-form-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.ns-form-grid > label:first-child,
.ns-form-grid > label:nth-child(2) { grid-column: span 1; }
.ns-form-grid > .ns-form-actions, .ns-form-grid > .ns-form-msg { grid-column: 1 / -1; }
.ns-form label { display: grid; gap: 6px; font-size: 13.5px; color: var(--text-soft); }
.ns-form label span { font-weight: 600; color: var(--text); }
.ns-form label small { color: var(--text-mute); font-size: 12px; }
.ns-form input[type="text"], .ns-form input[type="email"], .ns-form input[type="password"],
.ns-form input[type="number"], .ns-form input:not([type]),
.ns-form select, .ns-form textarea {
  background: rgba(8, 14, 26, 0.85);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 14px; color: var(--text);
  font: inherit; outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ns-form textarea { resize: vertical; min-height: 100px; line-height: 1.5; font-family: inherit; }
.ns-form select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--teal) 50%),
                    linear-gradient(135deg, var(--teal) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.ns-form input:focus, .ns-form select:focus, .ns-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(37,214,210,0.15);
}
.ns-form .ns-password-toggle-wrap input[type="password"],
.ns-form .ns-password-toggle-wrap input[type="text"] {
  padding-right: 52px;
}
.ns-form-inline { display: flex; align-items: center; gap: 10px; }
.ns-form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ns-form-msg { min-height: 22px; font-size: 13.5px; color: var(--text-mute); }
.ns-form-msg.is-ok { color: var(--green); }
.ns-form-msg.is-error { color: var(--red); }

/* --- Portal-specific layout ------------------------------------------- */
.ns-portal-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 12px; flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
}
.ns-portal-head > * {
  min-width: 0;
  min-height: 0;
  max-width: 100%;
}
.ns-portal-head-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.ns-portal-head-meta > div {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 18px; min-width: 140px;
}
.ns-portal-head-meta span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); }
.ns-portal-head-meta strong { font-family: 'Sora', sans-serif; font-size: 22px; }

.ns-mini-grid {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.ns-mini-grid li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 10px;
  background: rgba(8,14,26,0.6); border: 1px solid var(--border);
  font-size: 13px;
}
.ns-mini-grid li span { color: var(--text-mute); }

.ns-table td.ns-pos { color: #5ce0a7; font-weight: 600; }
.ns-table td.ns-neg { color: #ff6b8b; font-weight: 600; }
.ns-pos { color: #5ce0a7; }
.ns-neg { color: #ff6b8b; }

/* --- Admin dashboard --------------------------------------------------- */
.ns-admin-card {
  padding: 18px 20px;
  overflow: visible;
}

.ns-admin-loaded {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 18px; min-width: 260px;
  background: rgba(2,8,18,0.65);
  border: 1px solid rgba(37,214,210,0.35);
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(37,214,210,0.10);
}
.ns-admin-loaded-label {
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mute);
}
.ns-admin-loaded-name {
  font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 700;
  color: var(--text);
}
.ns-admin-loaded-sub {
  font-size: 12.5px; color: var(--text-soft);
}
.ns-admin-search {
  width: 280px; max-width: 100%;
  background: rgba(2,8,18,0.85); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 12px; color: var(--text);
  font: inherit; font-size: 13px;
}
.ns-admin-search:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(37,214,210,0.15); }

.ns-admin-table-wrap {
  position: relative;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ns-admin-table-wrap::-webkit-scrollbar { display: none; }
.ns-admin-table { font-size: 12.5px; min-width: 920px; }
.ns-admin-table th, .ns-admin-table td { padding: 9px 10px; white-space: nowrap; }
.ns-admin-table tbody tr.ns-admin-row {
  cursor: pointer;
  transition: background 0.12s ease;
  user-select: none;
  -webkit-user-select: none;
}
.ns-admin-table tbody tr.ns-admin-row:hover { background: rgba(37,214,210,0.05); }
.ns-admin-table tbody tr.is-selected {
  background: rgba(37,214,210,0.10);
  box-shadow: inset 3px 0 0 var(--teal);
}
.ns-admin-table code {
  font-family: 'Manrope', monospace; font-size: 11.5px;
  background: rgba(124,199,245,0.06); padding: 2px 6px; border-radius: 5px;
}

.ns-admin-fiche {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px;
}
.ns-admin-fiche > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px dashed rgba(124,199,245,0.06); }
.ns-admin-fiche span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); }
.ns-admin-fiche strong { font-family: 'Sora', sans-serif; font-size: 14px; color: var(--text); }
.ns-admin-fiche strong code { font-family: 'Manrope', monospace; font-size: 12.5px; color: var(--teal); background: rgba(37,214,210,0.06); padding: 2px 6px; border-radius: 5px; }

/* --- Fiche client 3-col --- */
.ns-fiche-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(2,8,18,0.45);
}
.ns-fiche-col {
  padding: 14px 16px;
  border-right: 1px solid var(--border);
}
.ns-fiche-col:last-child { border-right: none; }
.ns-fiche-h {
  font-family: 'Manrope', sans-serif;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.ns-fiche-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 6px 0;
  border-bottom: 1px dashed rgba(124,199,245,0.06);
  font-size: 13px;
}
.ns-fiche-row:last-child { border-bottom: none; }
.ns-fiche-row > span {
  color: var(--text-mute); font-size: 12px;
  flex-shrink: 0;
}
.ns-fiche-row > strong {
  color: var(--text); font-family: 'Sora', sans-serif;
  font-weight: 600; font-size: 13px;
  text-align: right;
  word-break: break-word;
}
.ns-fiche-row > strong code {
  font-family: 'Manrope', monospace; font-size: 12px;
  color: var(--teal); background: rgba(37,214,210,0.06);
  padding: 2px 6px; border-radius: 5px;
}

@media (max-width: 1080px) {
  .ns-fiche-grid { grid-template-columns: 1fr; }
  .ns-fiche-col { border-right: none; border-bottom: 1px solid var(--border); }
  .ns-fiche-col:last-child { border-bottom: none; }
}

.ns-admin-kpis {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ns-admin-kpi {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px;
  background: rgba(2,8,18,0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.ns-admin-kpi span { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); }
.ns-admin-kpi strong { font-family: 'Sora', sans-serif; font-size: 18px; color: var(--text); }

.ns-admin-legend {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: flex; flex-direction: column; gap: 6px; font-size: 12.5px;
}
.ns-admin-legend li {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-soft);
}
.ns-admin-legend li span {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
.ns-admin-legend li b { margin-left: auto; color: var(--text); font-weight: 600; }

.ns-admin-console {
  background: rgba(2,8,18,0.85);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-family: 'Manrope', monospace;
  font-size: 11px; line-height: 1.5;
  color: rgba(124,199,245,0.85);
  max-height: 420px; overflow: auto;
  white-space: pre;          /* keep lines intact, scroll horizontally if needed */
  margin: 0;
  min-width: 0;              /* allow shrinking inside flex/grid columns */
}

.ns-admin-timeline {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
  max-height: 480px; overflow: auto;
}
.ns-admin-timeline li {
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  padding: 8px 10px;
  background: rgba(2,8,18,0.55);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
}
.ns-timeline-ts {
  font-family: 'Manrope', monospace; color: var(--text-mute);
  min-width: 110px;
}
.ns-timeline-action {
  color: var(--teal); font-weight: 600;
  font-family: 'Manrope', monospace; font-size: 11.5px;
  letter-spacing: 0.04em;
}
.ns-timeline-detail {
  color: var(--text-soft); flex: 1 0 100%;
  font-size: 11.5px;
}

@media (max-width: 1080px) {
  .ns-admin-fiche { grid-template-columns: 1fr; }
  .ns-admin-kpis { grid-template-columns: 1fr; }
}

.ns-pos-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px; margin: 8px 0 12px;
}
.ns-pos-grid > div {
  background: rgba(8,14,26,0.6); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
}
.ns-pos-grid span { display: block; color: var(--text-mute); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; }
.ns-pos-grid strong { font-family: 'Sora', sans-serif; font-size: 16px; color: var(--text); }
.ns-pos-meta { font-size: 12.5px; color: var(--text-mute); margin-top: 8px; }

.ns-metric { font-family: 'Sora', sans-serif; font-size: 32px; font-weight: 700; color: var(--text); }
.ns-metric-lg { font-size: 38px; color: var(--teal); }

/* --- Tables ------------------------------------------------------------ */
.ns-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.ns-table th, .ns-table td {
  text-align: left; padding: 11px 10px;
  border-bottom: 1px solid rgba(124,199,245,0.07);
}
.ns-table th { color: var(--text-mute); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.ns-table td strong { color: var(--text); }
.ns-table-zebra tbody tr:nth-child(odd) { background: rgba(124, 199, 245, 0.025); }

/* --- Console ----------------------------------------------------------- */
.ns-console {
  margin: 0;
  background: rgba(2, 6, 14, 0.85);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  max-height: 320px; overflow: auto;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 12px; color: #c8e7ff;
  white-space: pre-wrap; word-break: break-word;
}

/* --- Fractal Schedule Card --------------------------------------------- */
.ns-schedule-card { display: flex; flex-direction: column; }
.ns-schedule-sub { font-size: 12.5px; margin-bottom: 12px; }
.ns-schedule-month-block {
  background: rgba(8,14,26,0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 13px;
}
.ns-schedule-month-block.is-off     { border-color: rgba(255,107,139,0.35); }
.ns-schedule-month-block.is-agg     { border-color: rgba(255,195,110,0.45); }
.ns-schedule-month-block.is-special { border-color: rgba(163,123,255,0.4); }
.ns-schedule-month-block p  { margin: 5px 0 0; color: var(--text-soft); font-size: 12.5px; }
.ns-manual-trade-box {
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid rgba(37,214,210,0.28);
  border-radius: 8px;
  background: rgba(2, 8, 18, 0.58);
}
.ns-manual-trade-box > strong {
  display: block;
  margin-bottom: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
}
.ns-manual-trade-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}
.ns-manual-trade-grid label { display: grid; gap: 5px; }
.ns-manual-trade-grid label span {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}
.ns-manual-trade-grid select,
.ns-manual-trade-grid input {
  width: 100%;
  min-height: 34px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: rgba(4, 10, 20, 0.9);
  color: var(--text);
  padding: 7px 9px;
}
.ns-manual-trade-note { margin: 8px 0 0; font-size: 11.5px; }
.ns-schedule-rows { display: flex; flex-direction: column; gap: 5px; }
.ns-schedule-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: rgba(8,14,26,0.45);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12.5px;
}
.ns-schedule-row.is-next { border-color: var(--teal); background: rgba(37,214,210,0.06); }
.ns-schedule-day  { font-weight: 600; min-width: 108px; color: var(--text); }
.ns-schedule-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  padding: 2px 8px; border-radius: 6px; min-width: 46px; text-align: center;
}
.ns-schedule-badge.is-long  { background: rgba(92,224,167,0.12); color: #5ce0a7; border: 1px solid rgba(92,224,167,0.25); }
.ns-schedule-badge.is-short { background: rgba(255,107,139,0.12); color: #ff6b8b; border: 1px solid rgba(255,107,139,0.25); }
.ns-schedule-badge.is-off   { background: rgba(124,146,173,0.08); color: var(--text-mute); border: 1px solid var(--border); }
.ns-schedule-detail { color: var(--text-soft); flex: 1; }
.ns-schedule-next-badge {
  margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  padding: 2px 8px; border-radius: 6px;
  background: rgba(37,214,210,0.15); color: var(--teal); border: 1px solid rgba(37,214,210,0.3);
}

.ns-quant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: 8px;
}
.ns-quant-grid > div {
  display: flex; flex-direction: column;
  padding: 6px 10px;
  background: rgba(2,8,18,0.55);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.ns-quant-grid span {
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 2px;
}
.ns-quant-grid b {
  font-family: 'Sora', sans-serif; font-weight: 600;
  font-size: 13.5px; color: var(--text);
}
@media (max-width: 720px) {
  .ns-quant-grid { grid-template-columns: 1fr; }
  .ns-manual-trade-grid { grid-template-columns: 1fr; }
}

.ns-mile { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 12px; }
.ns-mile-item {
  border-radius: 14px; padding: 16px;
  background: linear-gradient(140deg, rgba(37,214,210,0.08), rgba(8,14,26,0.5));
  border: 1px solid var(--border);
}
.ns-mile-item strong { font-family: 'Sora', sans-serif; font-size: 16px; display: block; margin-bottom: 6px; }
.ns-mile-item span { color: var(--text-soft); font-size: 13px; }

/* --- Flash + footer ---------------------------------------------------- */
.ns-flash {
  border-radius: 12px; padding: 12px 14px; margin: 0 0 14px;
  font-size: 13.5px; border: 1px solid var(--border);
  background: rgba(124, 199, 245, 0.06);
}
.ns-flash-ok { border-color: rgba(92,224,167,0.4); background: rgba(92,224,167,0.08); color: #ddffe9; }
.ns-flash-error { border-color: rgba(255,107,139,0.4); background: rgba(255,107,139,0.08); color: #ffd6e0; }

.ns-footer {
  margin-top: 60px; padding: 24px 32px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 18px;
  color: var(--text-mute); font-size: 12.5px;
  flex-wrap: wrap;
}
.ns-footer-col { display: flex; flex-direction: column; gap: 4px; max-width: 70%; }
.ns-footer-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.ns-footer-nav a { color: var(--text-soft); text-decoration: none; }
.ns-footer-nav a:hover { color: var(--teal); }
.ns-footer-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.ns-footer-btn:hover { color: var(--teal); }
.ns-qr-modal-card { width: min(460px, 100%); }
.ns-qr-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.ns-qr-modal-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ns-qr-modal-image {
  width: min(320px, 100%);
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(37,214,210,0.18);
  background: rgba(255,255,255,0.98);
  padding: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
}
.ns-qr-modal-copy {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.ns-muted { color: var(--text-mute); }

/* --- Legal / info pages (disclaimer, frais, faq, contact) -------------- */
.ns-info-hero { margin-bottom: 8px; }
.ns-info-meta { color: var(--text-mute); font-size: 12.5px; margin-top: 8px; }
.ns-info-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}
.ns-info-grid .ns-card h2 { font-size: 16px; }
.ns-info-grid .ns-card ul { margin: 0 0 8px 18px; padding: 0; color: var(--text-soft); line-height: 1.6; }
.ns-info-grid .ns-card li { margin-bottom: 4px; }
.ns-info-grid .ns-card-wide { grid-column: span 2; }

.ns-faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  background: rgba(8,14,26,0.55);
  margin-bottom: 10px;
}
.ns-faq details[open] { border-color: var(--border-strong); background: rgba(8,14,26,0.78); }
.ns-faq summary {
  cursor: pointer; list-style: none;
  font-family: 'Sora', sans-serif; font-size: 14.5px;
  color: var(--text); padding: 4px 0;
  display: flex; justify-content: space-between; gap: 12px;
}
.ns-faq summary::after { content: '+'; color: var(--teal); font-size: 18px; }
.ns-faq details[open] summary::after { content: '−'; }
.ns-faq summary::-webkit-details-marker { display: none; }
.ns-faq p { margin: 10px 0 0; color: var(--text-soft); line-height: 1.55; font-size: 14px; }

.ns-fee-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ns-fee-table th, .ns-fee-table td { padding: 12px 12px; border-bottom: 1px solid rgba(124,199,245,0.08); text-align: left; }
.ns-fee-table th { color: var(--text-mute); font-weight: 600; text-transform: uppercase; font-size: 11.5px; letter-spacing: 0.08em; }
.ns-fee-table td strong { color: var(--teal); font-family: 'Sora', sans-serif; }
.ns-fee-row-highlight td { background: rgba(37,214,210,0.06); }
.ns-fee-row-highlight td:first-child { border-left: 3px solid var(--teal); padding-left: 9px; }

.ns-contact-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px;
}
.ns-contact-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.ns-contact-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(8,14,26,0.55); border: 1px solid var(--border);
}
.ns-contact-list li span { color: var(--text-mute); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.ns-contact-list li a, .ns-contact-list li strong { color: var(--text); font-family: 'Sora', sans-serif; text-decoration: none; }
.ns-contact-list li a:hover { color: var(--teal); }

/* --- Portal mini chart ------------------------------------------------ */
.ns-portal-chart-card { display: flex; flex-direction: column; gap: 12px; }
.ns-portal-chart-card canvas { width: 100%; height: 220px; display: block; }
.ns-portal-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--text-soft); }
.ns-portal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ns-portal-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

@media (max-width: 1080px) {
  .ns-info-grid { grid-template-columns: 1fr; }
  .ns-info-grid .ns-card-wide { grid-column: span 1; }
  .ns-contact-grid { grid-template-columns: 1fr; }
}

/* --- Portal live station --------------------------------------------- */
.ns-portal-live-head { margin-bottom: 4px; }

.ns-ticker-row {
  margin-top: 18px;
}
.ns-ticker {
  background: linear-gradient(180deg, rgba(8,16,32,0.85), rgba(8,16,32,0.55));
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 0;
  overflow: hidden;
  font-family: 'Sora','Segoe UI',sans-serif;
  font-size: 12px;
}
.ns-ticker-track {
  display: flex; flex-wrap: nowrap; gap: 0;
  width: max-content;
  animation: ns-ticker-scroll 40s linear infinite;
}
.ns-ticker-track:hover { animation-play-state: paused; }
@keyframes ns-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ns-ticker .ns-tk {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px;
  border-right: 1px solid rgba(124,199,245,0.08);
  white-space: nowrap;
  color: var(--text);
}
.ns-ticker .ns-tk b {
  font-family: 'Manrope',sans-serif; font-weight: 700;
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-mute);
}
.ns-ticker-loading { padding: 6px 14px; color: var(--text-mute); }

.ns-live-card { display: flex; flex-direction: column; }
.ns-live-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.ns-live-grid > div {
  background: rgba(8,14,26,0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.ns-live-grid span {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute);
  margin-bottom: 4px;
}
.ns-live-grid strong {
  font-family: 'Sora',sans-serif; font-size: 16px; color: var(--text);
}
.ns-live-grid-wide { grid-column: span 2; }

.ns-equity-signal-card {
  display: grid;
  gap: 16px;
}
.ns-equity-signal-head {
  align-items: flex-start;
  gap: 16px;
}
.ns-equity-signal-head p {
  margin: 6px 0 0;
  max-width: 820px;
  font-size: 13px;
  color: var(--text-mute);
}
.ns-equity-signal-card .ns-pill {
  flex: 0 0 auto;
  text-transform: uppercase;
}
.ns-equity-signal-card.is-profit .ns-pill,
.ns-equity-signal-card .ns-pill.is-profit {
  background: rgba(92,224,167,0.14);
  border-color: rgba(92,224,167,0.35);
  color: var(--green);
}
.ns-equity-signal-card.is-entry .ns-pill,
.ns-equity-signal-card .ns-pill.is-entry {
  background: rgba(37,214,210,0.14);
  border-color: rgba(37,214,210,0.38);
  color: var(--teal);
}
.ns-equity-signal-card.is-neutral .ns-pill,
.ns-equity-signal-card .ns-pill.is-neutral {
  background: rgba(255,195,110,0.14);
  border-color: rgba(255,195,110,0.34);
  color: #ffc36e;
}
.ns-equity-signal-card.is-waiting .ns-pill,
.ns-equity-signal-card .ns-pill.is-waiting {
  background: rgba(124,199,245,0.1);
  border-color: var(--border);
  color: var(--text-soft);
}
.ns-equity-signal-body {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(360px, 1.6fr);
  gap: 14px;
  align-items: stretch;
}
.ns-equity-signal-main {
  min-height: 130px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(8,14,26,0.55);
  display: grid;
  align-content: center;
  gap: 8px;
}
.ns-equity-signal-main span,
.ns-equity-signal-grid span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}
.ns-equity-signal-main strong {
  font-family: 'Sora',sans-serif;
  font-size: 24px;
  line-height: 1.15;
  color: var(--text);
}
.ns-equity-signal-main p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}
.ns-equity-signal-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.ns-equity-signal-grid > div {
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(8,14,26,0.55);
}
.ns-equity-signal-grid strong {
  display: block;
  margin-top: 7px;
  font-family: 'Sora',sans-serif;
  font-size: 15px;
  line-height: 1.25;
  color: var(--text);
  overflow-wrap: anywhere;
}
.ns-equity-scale {
  display: grid;
  gap: 8px;
}
.ns-equity-scale-track {
  position: relative;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37,214,210,0.92), rgba(255,195,110,0.9) 50%, rgba(92,224,167,0.95));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.ns-equity-marker {
  position: absolute;
  left: 100%;
  top: 50%;
  width: 19px;
  height: 19px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px rgba(124,199,245,0.45), 0 8px 22px rgba(0,0,0,0.4);
}
.ns-equity-scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}
.ns-equity-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ns-equity-note {
  margin: 0;
  font-size: 12px;
  color: var(--text-mute);
}
.ns-equity-mini-indicator {
  display: grid;
  gap: 7px;
  width: 100%;
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(124,199,245,0.12);
  border-radius: 8px;
  background: rgba(8,14,26,0.34);
  color: var(--text-mute);
}
.ns-equity-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ns-equity-mini-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ns-equity-mini-indicator strong {
  font-family: 'Sora',sans-serif;
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
}
.ns-equity-mini-scale {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37,214,210,0.92), rgba(255,195,110,0.9) 50%, rgba(92,224,167,0.95));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.ns-equity-mini-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px rgba(124,199,245,0.45), 0 4px 12px rgba(0,0,0,0.38);
  transition: left 0.2s ease;
}
.ns-equity-mini-indicator.is-entry .ns-equity-mini-marker {
  left: 0%;
  background: var(--teal);
  box-shadow: 0 0 0 1px rgba(37,214,210,0.45), 0 0 14px rgba(37,214,210,0.42);
}
.ns-equity-mini-indicator.is-neutral .ns-equity-mini-marker,
.ns-equity-mini-indicator.is-waiting .ns-equity-mini-marker {
  left: 50%;
  background: #ffc36e;
}
.ns-equity-mini-indicator.is-profit .ns-equity-mini-marker {
  left: 100%;
  background: var(--green);
  box-shadow: 0 0 0 1px rgba(92,224,167,0.45), 0 0 14px rgba(92,224,167,0.38);
}
.ns-equity-mini-scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}

.ns-remote-card .ns-remote-grid { display: grid; gap: 12px; }
.ns-remote-row { display: grid; gap: 6px; font-size: 13px; color: var(--text-soft); }
.ns-remote-row > span { color: var(--text); font-weight: 600; font-size: 12.5px; }
.ns-remote-row input[type="text"]:-webkit-autofill,
.ns-remote-row input[type="password"]:-webkit-autofill,
.ns-remote-row input[type="text"]:-webkit-autofill:hover,
.ns-remote-row input[type="password"]:-webkit-autofill:hover,
.ns-remote-row input[type="text"]:-webkit-autofill:focus,
.ns-remote-row input[type="password"]:-webkit-autofill:focus,
.ns-remote-row input[type="text"]:-webkit-autofill:active,
.ns-remote-row input[type="password"]:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(2,8,18,0.85) inset !important;
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
  border: 1px solid var(--border) !important;
}
.ns-remote-row input[type="text"], .ns-remote-row input[type="password"] {
  background: rgba(2,8,18,0.85); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; color: var(--text);
  font: inherit; outline: none; width: 100%;
}
.ns-remote-row input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(37,214,210,0.15); }
.ns-remote-row-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ns-remote-row-inline > span { margin: 0; min-width: 80px; }
.ns-remote-row-inline input[type="text"] { width: 90px; }
.ns-remote-row-inline input[type="checkbox"] { width: 16px; height: 16px; }
.ns-remote-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ns-remote-actions .ns-btn { flex: 1; min-width: 120px; }
.ns-remote-actions .ns-btn-primary.is-on { background: linear-gradient(135deg,#ff6b8b,#a37bff); }
.ns-remote-feedback { font-size: 12px; color: var(--text-mute); margin: 0; }
.ns-remote-feedback.is-ok { color: var(--green); }
.ns-remote-feedback.is-error { color: var(--red); }

/* Flash sur changement de prix live dans la carte Position */
#ns-pos-source {
  transition: color 0.6s ease, text-shadow 0.6s ease;
  font-variant-numeric: tabular-nums;
}
#ns-pos-source.is-price-up {
  animation: ns-price-flash-up 0.7s ease-out;
}
#ns-pos-source.is-price-down {
  animation: ns-price-flash-down 0.7s ease-out;
}
@keyframes ns-price-flash-up {
  0%   { color: var(--green); text-shadow: 0 0 14px rgba(92,224,167,0.7); }
  60%  { color: var(--green); text-shadow: 0 0 6px rgba(92,224,167,0.4); }
  100% { color: var(--text); text-shadow: none; }
}
@keyframes ns-price-flash-down {
  0%   { color: var(--red); text-shadow: 0 0 14px rgba(255,107,139,0.7); }
  60%  { color: var(--red); text-shadow: 0 0 6px rgba(255,107,139,0.4); }
  100% { color: var(--text); text-shadow: none; }
}

.ns-remote-hint {
  display: block;
  font-size: 10.5px; font-weight: 400;
  color: var(--text-mute);
  letter-spacing: normal; text-transform: none;
  margin-top: 2px;
}
.ns-remote-api-status {
  margin: 8px 0 0;
  padding: 8px 12px;
  font-size: 12px; line-height: 1.4;
  border-radius: 8px;
  background: rgba(124,199,245,0.06);
  border: 1px solid var(--border);
  color: var(--text-soft);
}
.ns-remote-api-status:empty { display: none; }
.ns-remote-api-status.is-ok      { background: rgba(92,224,167,0.08);  border-color: rgba(92,224,167,0.32); color: var(--green); }
.ns-remote-api-status.is-warn    { background: rgba(255,195,110,0.08); border-color: rgba(255,195,110,0.4);  color: var(--amber); }
.ns-remote-api-status.is-expired { background: rgba(255,107,139,0.10); border-color: rgba(255,107,139,0.45); color: var(--red); font-weight: 600; }

/* --- Champ date/heure restylé pour le thème dark --- */
.ns-date-input-wrap {
  position: relative;
  display: block;
}
.ns-date-input {
  width: 100%;
  background: rgba(2,8,18,0.85);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 38px 10px 14px;
  color: var(--text);
  font: 14px 'Manrope', 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  /* Force la palette dark sur les pickers natifs */
  color-scheme: dark;
}
.ns-date-input:hover {
  border-color: rgba(37,214,210,0.45);
}
.ns-date-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(37,214,210,0.15);
}
/* Cache la couleur claire des chars placeholder par défaut du browser */
.ns-date-input:invalid {
  color: rgba(124,199,245,0.45);
}
.ns-date-input::-webkit-datetime-edit-text,
.ns-date-input::-webkit-datetime-edit-year-field,
.ns-date-input::-webkit-datetime-edit-month-field,
.ns-date-input::-webkit-datetime-edit-day-field,
.ns-date-input::-webkit-datetime-edit-hour-field,
.ns-date-input::-webkit-datetime-edit-minute-field,
.ns-date-input::-webkit-datetime-edit-second-field {
  color: inherit;
  padding: 0 1px;
}
.ns-date-input::-webkit-datetime-edit-fields-wrapper { padding: 0; }
.ns-date-input::-webkit-clear-button { display: none; }
.ns-date-input::-webkit-inner-spin-button { display: none; }
.ns-date-input::-webkit-calendar-picker-indicator {
  /* Cache l'icone par défaut du browser — on met la nôtre */
  opacity: 0;
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 100%;
  cursor: pointer;
  background: transparent;
}
.ns-date-input-icon {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  opacity: 0.7;
  filter: hue-rotate(140deg) saturate(0.6);
}
.ns-remote-input-wrap { position: relative; }
.ns-visibility {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; color: var(--text-soft);
  cursor: pointer; font-size: 16px; padding: 4px 6px;
}
.ns-visibility.is-active { color: var(--teal); }

.ns-chart-card { padding: 18px 20px; }
.ns-chart-head { gap: 16px; flex-wrap: wrap; }
.ns-chart-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ns-chart-tools-right { margin-left: auto; }
.ns-chart-group { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; background: rgba(8,14,26,0.65); border: 1px solid var(--border); border-radius: 10px; }
.ns-chart-k { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); padding-left: 4px; }
.ns-chart-btn {
  background: transparent; border: 1px solid transparent; color: var(--text-soft);
  padding: 6px 12px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 12px;
}
.ns-chart-btn:hover { background: rgba(124,199,245,0.08); color: var(--text); }
.ns-chart-btn.is-active { background: var(--teal-soft); color: var(--teal); border-color: var(--border-strong); }
.ns-chart-btn-toggle { border: 1px solid var(--border); }

.ns-ind-panel {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 18px;
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8,14,26,0.55);
}
.ns-ind-panel.is-open { display: grid; }
.ns-ind-panel label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-soft); cursor: pointer; }
.ns-ind-panel input[type="checkbox"] { accent-color: var(--teal); }
.ns-ind-sep { grid-column: 1 / -1; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); padding-top: 6px; border-top: 1px dashed var(--border); margin-top: 4px; }

.ns-chart-wrap {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(2,8,18,0.85);
  padding: 4px;
}
#ns-live-chart {
  display: block;
  width: 100%;
  height: 540px;
}
.ns-chart-hint { font-size: 11.5px; margin: 6px 0 0; }

/* --- Admin indicator terminal ------------------------------------------ */
.ns-page-indicateur .ns-main {
  max-width: 1540px;
}
.ns-indicator-head {
  align-items: flex-end;
}
.ns-indicator-terminal {
  margin-top: 28px;
}
.ns-indicator-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  background: rgba(5, 10, 20, 0.92);
}
.ns-indicator-status {
  margin-left: auto;
  min-width: 170px;
  text-align: right;
  color: var(--text-mute);
  font-size: 12px;
  font-weight: 700;
}
.ns-page-indicateur .ns-indicator-toolbar {
  display: none;
}
.ns-indicator-status[data-level="ok"] { color: var(--green); }
.ns-indicator-status[data-level="err"] { color: var(--red); }
.ns-indicator-shell {
  display: grid;
  grid-template-columns: minmax(250px, 280px) minmax(0, 1fr) minmax(270px, 320px);
  grid-template-areas: "ticket chart panel";
  min-height: 650px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(5, 9, 19, 0.96), rgba(3, 7, 14, 0.98));
  overflow: hidden;
}
.ns-indicator-ticket {
  grid-area: ticket;
}
.ns-indicator-chart-stage {
  grid-area: chart;
  min-width: 0;
  background:
    radial-gradient(circle at top, rgba(37, 214, 210, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(5, 9, 19, 0.96), rgba(3, 7, 14, 0.98));
}
#nsIndicatorChart {
  width: 100%;
  height: 650px;
  display: block;
  cursor: crosshair;
}
.ns-indicator-panel {
  grid-area: panel;
  border-left: 1px solid var(--border);
  background: rgba(7, 13, 25, 0.86);
  padding: 14px;
  min-width: 0;
}
.ns-indicator-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(37, 214, 210, 0.28);
  border-radius: 10px;
  background: rgba(37, 214, 210, 0.08);
}
.ns-indicator-panel-head span {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  color: var(--text);
}
.ns-indicator-panel-head strong {
  color: var(--teal);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.ns-indicator-panel dl {
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
}
.ns-indicator-panel dl div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(85, 169, 219, 0.12);
  border-radius: 9px;
  background: rgba(2, 8, 18, 0.62);
}
.ns-indicator-panel dt {
  margin: 0 0 4px;
  color: var(--text-mute);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ns-indicator-panel dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.ns-indicator-panel dd[data-tone="long"],
.ns-indicator-panel dd[data-tone="ok"] {
  color: var(--green);
}
.ns-indicator-panel dd[data-tone="short"] {
  color: var(--red);
}
.ns-indicator-panel dd[data-tone="warn"] {
  color: var(--amber);
}
.ns-indicator-panel dd[data-tone="live"] {
  color: var(--teal);
}

.ns-console-card .ns-live-log {
  margin: 0;
  background: rgba(2,6,14,0.92);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  /* Plus haut pour afficher beaucoup de lignes (analyse de bug) */
  max-height: 600px; overflow: auto;
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-size: 12px; color: #c8e7ff;
  white-space: pre-wrap; word-break: break-word;
  line-height: 1.55;
}
.ns-console-toolbar {
  display: flex; gap: 14px; align-items: center;
  font-size: 12.5px; color: var(--text-soft);
  flex-wrap: wrap;
}
.ns-console-pause {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.ns-console-pause input[type="checkbox"] { accent-color: var(--teal); cursor: pointer; }
.ns-console-status {
  padding: 4px 10px; border-radius: 8px;
  background: rgba(2,8,18,0.55);
  border: 1px solid var(--border);
  font-family: 'Manrope', monospace; font-size: 11.5px;
  color: var(--text-mute);
}
.ns-console-status.is-ok   { color: var(--green); border-color: rgba(92,224,167,0.35); }
.ns-console-status.is-down { color: var(--red);   border-color: rgba(255,107,139,0.35); }
.ns-console-actions {
  display: flex; gap: 6px; align-items: center;
}
.ns-console-filter {
  background: rgba(2,8,18,0.85); border: 1px solid var(--border);
  border-radius: 8px; padding: 5px 10px; color: var(--text);
  font: 12px 'Manrope', sans-serif;
  min-width: 180px;
}
.ns-console-filter:focus { outline: none; border-color: var(--teal); }
.ns-brain-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  background: rgba(124,199,245,0.1); color: var(--text-soft); border: 1px solid var(--border);
}
.ns-brain-badge.is-ok { color: var(--green); background: rgba(92,224,167,0.12); border-color: rgba(92,224,167,0.35); }
.ns-brain-badge.is-down { color: var(--red); background: rgba(255,107,139,0.12); border-color: rgba(255,107,139,0.35); }

@media (max-width: 1320px) {
  .ns-indicator-shell {
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas:
      "chart panel"
      "ticket panel";
  }
  .ns-indicator-ticket {
    border-right: 0;
    border-top: 1px solid var(--border);
  }
}
@media (max-width: 1080px) {
  .ns-live-grid { grid-template-columns: 1fr; }
  .ns-live-grid-wide { grid-column: span 1; }
  .ns-equity-signal-body { grid-template-columns: 1fr; }
  .ns-equity-signal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #ns-live-chart { height: 460px; }
  .ns-indicator-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "chart"
      "ticket"
      "panel";
  }
  .ns-indicator-ticket,
  .ns-indicator-panel { border-left: 0; border-top: 1px solid var(--border); }
  #nsIndicatorChart { height: 560px; }
}
@media (max-width: 720px) {
  .ns-chart-tools { gap: 6px; }
  .ns-chart-group { padding: 2px 4px; }
  .ns-chart-btn { padding: 5px 10px; font-size: 11.5px; }
  .ns-indicator-toolbar { align-items: flex-start; }
  .ns-indicator-status { margin-left: 0; width: 100%; text-align: left; }
  .ns-equity-signal-head { flex-direction: column; }
  .ns-equity-signal-grid { grid-template-columns: 1fr; }
  .ns-equity-signal-main strong { font-size: 20px; }
  .ns-equity-actions .ns-btn { width: 100%; }
  .ns-equity-mini-top { align-items: flex-start; }
  #ns-live-chart { height: 380px; }
  #nsIndicatorChart { height: 430px; }
  .ns-indicator-ticket,
  .ns-indicator-panel { padding: 12px; }
}

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 1080px) {
  .ns-hero { grid-template-columns: 1fr; }
  .ns-grid-3 { grid-template-columns: 1fr 1fr; }
  .ns-grid-12 { grid-template-columns: repeat(6, 1fr); }
  .ns-span-7, .ns-span-5 { grid-column: span 6; }
  .ns-span-4 { grid-column: span 6; }
}
@media (max-width: 720px) {
  .ns-topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
  }
  .ns-brand {
    min-width: 0;
    gap: 10px;
  }
  .ns-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    flex: 0 0 auto;
  }
  .ns-brand-text strong {
    font-size: 16px;
    white-space: nowrap;
  }
  .ns-nav-toggle {
    display: inline-flex;
  }
  .ns-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(6, 12, 24, 0.98);
    box-shadow: 0 18px 40px rgba(0,0,0,0.42);
  }
  body.ns-nav-open .ns-nav,
  .ns-topbar.is-open .ns-nav {
    display: grid;
  }
  .ns-nav a {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 15px;
  }
  .ns-nav .ns-nav-cta,
  .ns-nav .ns-lang-switch {
    margin-left: 0;
  }
  .ns-nav .ns-lang-switch {
    justify-content: center;
  }
  .ns-main {
    width: 100%;
    padding: 22px 14px 58px;
  }
  .ns-grid-3, .ns-grid-2 { grid-template-columns: 1fr; }
  .ns-grid-12 { grid-template-columns: 1fr; }
  .ns-span-4, .ns-span-5, .ns-span-6, .ns-span-7, .ns-span-12 { grid-column: span 1; }
  .ns-form-grid { grid-template-columns: 1fr; }
  .ns-mini-grid, .ns-pos-grid, .ns-mile { grid-template-columns: 1fr; }
  .ns-arch { flex-direction: column; }
  .ns-arch-arrow { transform: rotate(90deg); }
}

/* ======================================================================
   2FA enrolment notice (intégré dans la card)
   ====================================================================== */
.ns-2fa-notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: rgba(37,214,210,0.08);
  border: 1px solid rgba(37,214,210,0.35);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.ns-2fa-notice strong {
  font-family: 'Manrope', sans-serif;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal);
}
.ns-2fa-notice p {
  margin: 0;
  font-size: 13.5px; line-height: 1.5;
  color: var(--text-soft);
}

.ns-2fa-support {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: rgba(255,195,110,0.06);
  border: 1px solid rgba(255,195,110,0.32);
  border-left: 3px solid var(--amber);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.ns-2fa-support strong {
  font-family: 'Manrope', sans-serif;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber);
}
.ns-2fa-support p {
  margin: 0;
  font-size: 13px; line-height: 1.5;
  color: var(--text-soft);
}
.ns-2fa-support-link {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ns-2fa-support-link:hover { color: var(--text); }
.ns-2fa-support-btn {
  align-self: flex-start;
  margin-top: 4px;
  color: var(--amber);
  border-color: rgba(255,195,110,0.4);
}
.ns-2fa-support-btn:hover {
  background: rgba(255,195,110,0.14);
  color: var(--text);
}

.ns-2fa-backlinks {
  margin-top: 20px;
  font-size: 13px;
}
.ns-2fa-setup {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 16px;
  margin: 18px 0;
  align-items: stretch;
}
.ns-2fa-setup-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(124,199,245,0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)),
    rgba(2,10,22,0.66);
  display: grid;
  gap: 10px;
}
.ns-2fa-setup-step {
  margin: 0;
  color: var(--text);
  font: 800 14px/1.45 Manrope, sans-serif;
}
.ns-2fa-setup-label {
  margin: 0;
  color: var(--text-mute);
  font: 800 10px/1.2 Manrope, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ns-2fa-setup-code {
  display: block;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(37,214,210,.18);
  background: rgba(37,214,210,.07);
  color: var(--text-soft);
  font: 800 12px/1.45 "JetBrains Mono", Consolas, monospace;
  overflow-wrap: anywhere;
}
.ns-2fa-setup-code-secret {
  color: #9ff8ec;
  font-size: 14px;
}
.ns-2fa-setup-qr {
  justify-items: center;
  text-align: center;
}
.ns-2fa-setup-qr-box {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(5,12,22,0.08);
}
.ns-2fa-setup-qr-image {
  width: 100%;
  height: auto;
  display: block;
}
.ns-2fa-setup-qr-fallback {
  color: #102033;
  font: 800 14px/1.4 Manrope, sans-serif;
}
@media (max-width: 760px) {
  .ns-2fa-setup {
    grid-template-columns: 1fr;
  }
  .ns-2fa-setup-qr-box {
    max-width: 200px;
  }
}

/* ======================================================================
   Page Trades — table filtrable + modal détail
   ====================================================================== */
.ns-trades-summary {
  display: flex; gap: 14px; flex-wrap: wrap;
  background: rgba(2,8,18,0.65);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 360px;
}
.ns-trades-summary div {
  display: flex; flex-direction: column; gap: 2px; min-width: 90px;
}
.ns-trades-summary span {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute);
}
.ns-trades-summary strong {
  font-family: 'Sora', sans-serif; font-size: 16px;
}

.ns-trades-shell { padding: 18px 20px; }
.ns-trades-filters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 14px;
}
.ns-trades-filters label {
  display: flex; flex-direction: column; gap: 4px;
}
.ns-trades-filters label > span {
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-mute);
}
.ns-trades-filters input,
.ns-trades-filters select {
  background: rgba(2,8,18,0.85); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 10px; color: var(--text);
  font: 13px 'Manrope', sans-serif;
}
.ns-trades-filters input:focus,
.ns-trades-filters select:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(37,214,210,0.15);
}

.ns-trades-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 0 10px; gap: 10px; flex-wrap: wrap;
}
.ns-trades-stats {
  font-size: 12px; color: var(--text-soft);
  font-family: 'Manrope', monospace;
}
.ns-trades-pager {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Manrope', monospace; font-size: 12.5px; color: var(--text-soft);
}

.ns-trades-table {
  width: 100%; min-width: 920px; font-size: 12.5px;
  border-collapse: collapse;
}
.ns-trades-table thead th {
  padding: 8px 10px; text-align: left;
  background: rgba(2,8,18,0.5);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.ns-trades-table thead th button {
  background: transparent; border: 0; color: var(--text-mute);
  font: inherit; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; padding: 2px 0;
}
.ns-trades-table thead th button:hover { color: var(--text); }
.ns-trades-table thead th button.is-active { color: var(--teal); }
.ns-trades-table thead th button.is-active::after {
  content: attr(data-dir);
  margin-left: 4px;
  font-family: monospace;
}
.ns-trades-table thead th button[data-dir="desc"]::after { content: "↓"; }
.ns-trades-table thead th button[data-dir="asc"]::after { content: "↑"; }
.ns-trades-table tbody td {
  padding: 7px 10px; white-space: nowrap;
  border-bottom: 1px dashed rgba(85,169,219,0.06);
}
.ns-trade-row { cursor: pointer; transition: background 0.12s ease; }
.ns-trade-row:hover { background: rgba(37,214,210,0.06); }

/* Modal détail trade ----------------------------------------------------- */
body.ns-modal-open { overflow: hidden; }
.ns-trade-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
}
.ns-trade-modal[hidden] { display: none; }
.ns-trade-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(2,8,18,0.78);
  backdrop-filter: blur(8px);
}
.ns-trade-modal-card {
  position: relative; z-index: 1;
  width: min(1080px, 100%);
  max-height: calc(100vh - 56px);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(13,22,38,0.95), rgba(8,14,26,0.95));
  border: 1px solid rgba(37,214,210,0.45);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 60px rgba(37,214,210,0.18);
  overflow: hidden;
}
.ns-trade-modal-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 18px 22px; gap: 12px;
  border-bottom: 1px solid var(--border);
}
.ns-trade-modal-head h2 {
  font-family: 'Sora', sans-serif; font-size: 22px; margin: 4px 0 0;
}
.ns-trade-modal-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ns-trade-modal-close {
  background: rgba(124,199,245,0.1); border: 1px solid var(--border);
  color: var(--text); border-radius: 50%;
  width: 32px; height: 32px; line-height: 30px; text-align: center;
  font-size: 18px; cursor: pointer;
}
.ns-trade-modal-close:hover { background: rgba(255,107,139,0.18); border-color: var(--red); color: var(--red); }
.ns-trade-modal-body {
  padding: 18px 22px 22px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "summary chart" "details details";
  gap: 18px;
}
.ns-trade-modal-summary { grid-area: summary; }
.ns-trade-modal-chart-wrap { grid-area: chart; }
.ns-trade-modal-meta { grid-area: details; }
.ns-trade-modal-h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 10px;
}
.ns-trade-modal-summary {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
}
.ns-trade-kpi {
  background: rgba(2,8,18,0.65);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.ns-trade-kpi span {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-mute);
}
.ns-trade-kpi strong {
  font-family: 'Sora', sans-serif; font-size: 14px;
}
.ns-trade-modal-chart-wrap canvas {
  width: 100%; height: 280px;
  background: rgba(2,8,18,0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.ns-trade-modal-legend {
  margin: 8px 0 0;
  display: flex; gap: 12px; flex-wrap: wrap;
  font-family: 'Manrope', monospace; font-size: 10.5px;
}
.ns-trade-modal-legend span { color: var(--text-mute); }
.ns-trade-modal-legend .ns-lvl-entry { color: var(--teal); }
.ns-trade-modal-legend .ns-lvl-tp { color: var(--green); }
.ns-trade-modal-legend .ns-lvl-sl { color: var(--red); }
.ns-trade-modal-legend .ns-lvl-exit { color: var(--violet); }

.ns-trade-modal-details {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 4px 18px;
}
.ns-trade-detail-row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(85,169,219,0.08);
  font-size: 12.5px;
}
.ns-trade-detail-row span { color: var(--text-mute); }
.ns-trade-detail-row strong { color: var(--text); font-family: 'Manrope', sans-serif; font-weight: 600; }

@media (max-width: 920px) {
  .ns-trade-modal-body {
    grid-template-columns: 1fr;
    grid-template-areas: "summary" "chart" "details";
  }
  .ns-trade-modal-summary { grid-template-columns: 1fr; }
  .ns-trade-modal-details { grid-template-columns: 1fr; }
}

/* Stats modal (popup pour bouton Stats dans table admin) */
.ns-stats-modal-card { width: min(1280px, 100%); }
.ns-stats-modal-body {
  grid-template-columns: 2fr 1fr;
  grid-template-areas:
    "kpi kpi"
    "equity reasons"
    "recent recent";
}
.ns-stats-modal-kpis {
  grid-area: kpi;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}
.ns-stats-modal-body .ns-stats-modal-chart-wrap:nth-of-type(2) { grid-area: equity; }
.ns-stats-modal-body .ns-stats-modal-chart-wrap:nth-of-type(3) { grid-area: reasons; }
.ns-stats-modal-recent { grid-area: recent; }
.ns-stats-modal-chart-wrap canvas {
  width: 100%; height: 240px;
  background: rgba(2,8,18,0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
}

@media (max-width: 920px) {
  .ns-stats-modal-body {
    grid-template-columns: 1fr;
    grid-template-areas: "kpi" "equity" "reasons" "recent";
  }
  .ns-stats-modal-kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ======================================================================
   Strategy map — TZ toggle (UTC / local)
   ====================================================================== */
.ns-schedule-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 6px;
}
.ns-tz-toggle {
  display: inline-flex; gap: 0;
  background: rgba(2,8,18,0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2px;
}
.ns-tz-btn {
  background: transparent; border: 0;
  padding: 5px 10px; border-radius: 8px;
  font: 11px 'Manrope', sans-serif; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-mute);
  cursor: pointer; transition: all 0.12s ease;
}
.ns-tz-btn:hover { color: var(--text); }
.ns-tz-btn.is-active {
  background: rgba(37,214,210,0.18);
  color: var(--teal);
  box-shadow: 0 0 0 1px rgba(37,214,210,0.32);
}
.ns-tz-time {
  font-variant-numeric: tabular-nums;
}
.ns-tz-zonelabel {
  color: var(--text-mute);
  font-size: 0.92em;
}

/* ======================================================================
   Admin Monitoring (live grid + fiche client + charts + timeline)
   ====================================================================== */
.ns-monitoring-root { display: contents; }

.ns-admin-head-stack {
  flex: 1 1 620px;
  min-width: min(100%, 520px);
  max-width: 760px;
}
.ns-admin-command-panel {
  width: 100%;
}
.ns-admin-command-head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(124,199,245,0.12);
}
.ns-admin-command-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(300px, 1.05fr);
  gap: 16px;
  align-items: stretch;
}
.ns-admin-command-section {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ns-admin-command-section + .ns-admin-command-section {
  padding-left: 16px;
  border-left: 1px solid rgba(124,199,245,0.12);
}
.ns-admin-command-panel .ns-admin-loaded {
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.ns-monitoring-loaded {
  min-width: 320px;
}
.ns-cerveau-widget {
  padding: 14px 16px;
  background: rgba(2,8,18,0.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.ns-cerveau-widget[data-state="healthy"]    { border-color: rgba(92,224,167,0.45); box-shadow: 0 0 24px rgba(92,224,167,0.12); }
.ns-cerveau-widget[data-state="starting"]   { border-color: rgba(37,214,210,0.55); box-shadow: 0 0 24px rgba(37,214,210,0.18); }
.ns-cerveau-widget[data-state="stale"]      { border-color: rgba(255,195,110,0.45); box-shadow: 0 0 24px rgba(255,195,110,0.12); }
.ns-cerveau-widget[data-state="init_stuck"] { border-color: rgba(255,107,139,0.55); box-shadow: 0 0 24px rgba(255,107,139,0.18); }
.ns-cerveau-widget[data-state="down"]       { border-color: rgba(255,107,139,0.40); }
.ns-cerveau-head {
  display: flex; align-items: center; gap: 10px;
}
.ns-cerveau-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--text-mute);
  flex-shrink: 0;
}
.ns-cerveau-widget[data-state="healthy"]    .ns-cerveau-dot { background: var(--green); box-shadow: 0 0 10px rgba(92,224,167,0.7); }
.ns-cerveau-widget[data-state="starting"]   .ns-cerveau-dot { background: var(--teal); box-shadow: 0 0 12px rgba(37,214,210,0.85); animation: ns-cerveau-pulse 1.2s ease-in-out infinite; }
.ns-cerveau-widget[data-state="stale"]      .ns-cerveau-dot { background: var(--amber); box-shadow: 0 0 10px rgba(255,195,110,0.7); }
.ns-cerveau-widget[data-state="init_stuck"] .ns-cerveau-dot { background: var(--red); box-shadow: 0 0 12px rgba(255,107,139,0.85); }
.ns-cerveau-widget[data-state="down"]       .ns-cerveau-dot { background: var(--red); box-shadow: 0 0 10px rgba(255,107,139,0.7); }
@keyframes ns-cerveau-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}
.ns-cerveau-title {
  margin: 0; font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em;
}
.ns-cerveau-state {
  margin-left: auto;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-mute);
  padding: 4px 8px; border-radius: 6px;
  background: rgba(124,199,245,0.06);
}
.ns-cerveau-widget[data-state="healthy"]    .ns-cerveau-state { background: rgba(92,224,167,0.12); color: var(--green); }
.ns-cerveau-widget[data-state="starting"]   .ns-cerveau-state { background: rgba(37,214,210,0.14); color: var(--teal); }
.ns-cerveau-widget[data-state="stale"]      .ns-cerveau-state { background: rgba(255,195,110,0.12); color: var(--amber); }
.ns-cerveau-widget[data-state="init_stuck"] .ns-cerveau-state { background: rgba(255,107,139,0.18); color: var(--red); }
.ns-cerveau-widget[data-state="down"]       .ns-cerveau-state { background: rgba(255,107,139,0.12); color: var(--red); }
.ns-cerveau-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 6px 12px;
}
.ns-cerveau-grid > div {
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px 8px;
  background: rgba(8,14,26,0.5); border-radius: 8px;
  border: 1px solid rgba(85,169,219,0.08);
}
.ns-cerveau-grid span {
  font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-mute);
}
.ns-cerveau-grid strong {
  font-family: 'Sora', sans-serif; font-size: 13px; color: var(--text);
}
.ns-cerveau-grid strong.ns-warn { color: var(--amber); }
.ns-cerveau-actions {
  display: flex; gap: 6px;
}
.ns-cerveau-actions .ns-btn {
  flex: 1;
  padding: 6px 10px; font-size: 12px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(2,8,18,0.6); color: var(--text);
  cursor: pointer; transition: all 0.12s ease;
}
.ns-cerveau-actions .ns-btn:hover { border-color: var(--teal); background: rgba(37,214,210,0.08); }
.ns-cerveau-actions .ns-btn[disabled] { opacity: 0.5; cursor: wait; }
.ns-cerveau-actions .ns-btn-start { color: var(--green); border-color: rgba(92,224,167,0.35); }
.ns-cerveau-actions .ns-btn-stop  { color: var(--red); border-color: rgba(255,107,139,0.35); }
.ns-cerveau-note {
  margin: 0;
  font-size: 11px; color: var(--text-soft);
  font-family: 'Manrope', monospace;
}
.ns-monitor-access-code {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(124,199,245,0.12);
  display: flex; flex-direction: column; gap: 6px;
}
.ns-monitor-access-code-label {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-mute);
}
.ns-monitor-access-code-wrap {
  display: flex; gap: 6px;
}
.ns-monitor-access-code-input {
  flex: 1;
  background: rgba(2,8,18,0.85); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px; color: var(--text);
  font: 12.5px 'Manrope', monospace;
  letter-spacing: 0.04em;
}
.ns-monitor-access-code-toggle {
  background: rgba(37,214,210,0.10); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px; color: var(--teal);
  cursor: pointer; font-size: 13px;
}
.ns-monitor-access-code-toggle:hover { background: rgba(37,214,210,0.18); }
.ns-access-code-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--text-mute); margin-top: 8px;
  gap: 8px; flex-wrap: wrap;
}
.ns-access-code-meta strong { color: var(--text-soft); font-family: 'Manrope', monospace; font-weight: 500; }
.ns-access-code-auto {
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; user-select: none;
}
.ns-access-code-auto input { accent-color: var(--teal); cursor: pointer; }
.ns-access-code-actions {
  display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap;
}
.ns-access-code-actions .ns-btn-sm { flex: 1; min-width: 90px; }

.ns-monitor-users-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 18px; flex-wrap: wrap;
}
.ns-monitor-help {
  font-size: 12px; margin: 4px 0 0;
}
.ns-monitor-api-status {
  font-size: 11.5px; margin: 6px 0 12px;
  font-family: 'Manrope', monospace;
}
.ns-monitor-api-status[data-level="ok"]   { color: var(--green); }
.ns-monitor-api-status[data-level="err"]  { color: var(--red); }
.ns-monitor-api-status[data-level="info"] { color: var(--text-soft); }

/* Users grid (large editable table) */
.ns-monitor-table-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ns-monitor-table-wrap::-webkit-scrollbar { display: none; }
.ns-monitor-users-table {
  min-width: 1620px; font-size: 12px;
}
.ns-monitor-users-table th,
.ns-monitor-users-table td {
  padding: 8px 8px; vertical-align: middle;
}
.ns-monitor-users-table thead th {
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-mute);
}
.ns-monitor-row { cursor: pointer; transition: background 0.12s ease; }
.ns-monitor-row:hover { background: rgba(37,214,210,0.05); }
.ns-monitor-row.is-selected {
  background: rgba(37,214,210,0.10);
  box-shadow: inset 3px 0 0 var(--teal);
}

.ns-cell-input {
  background: rgba(2,8,18,0.85); border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 7px; color: var(--text);
  font: 11.5px 'Manrope', sans-serif;
  min-width: 92px; max-width: 100%;
}
.ns-admin-table-pan-wrap.is-pannable {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.ns-admin-table-pan-wrap.is-dragging {
  cursor: grabbing;
}
.ns-cell-input:focus { outline: none; border-color: var(--teal); }
.ns-cell-wallet { min-width: 132px; font-family: 'Manrope', monospace; }
.ns-cell-fee { width: 70px; min-width: 60px; }
.ns-cell-api-exp {
  width: 168px;
  min-width: 168px;
  font-size: 11.5px;
  color-scheme: dark;
  cursor: pointer;
}
.ns-cell-api-exp::-webkit-calendar-picker-indicator {
  filter: invert(0.8) hue-rotate(140deg);
  cursor: pointer;
}
.ns-monitor-api-cell {
  white-space: nowrap;
  vertical-align: middle;
}
.ns-monitor-api-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.ns-monitor-api-inline .ns-pill {
  flex: 0 0 auto;
  margin: 0;
}
.ns-cell-fee.is-default {
  color: var(--text-mute);
  font-style: italic;
  border-style: dashed;
}
.ns-cell-fee.is-override {
  color: var(--teal);
  border-color: rgba(37,214,210,0.5);
  background: rgba(37,214,210,0.06);
}
.ns-monitor-users-table select.ns-cell-input { min-width: 90px; }

.ns-monitor-actions {
  position: relative;
  text-align: right;
  vertical-align: middle;
  width: 1%;
  white-space: nowrap;
}
.ns-monitor-actions > .ns-action-menu {
  display: inline-flex;
  vertical-align: middle;
}
.ns-btn-sm {
  background: rgba(37,214,210,0.10);
  border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 9px;
  color: var(--text); font: 11px 'Manrope', sans-serif; cursor: pointer;
  transition: all 0.12s ease;
}
.ns-btn-sm:hover { background: rgba(37,214,210,0.20); border-color: var(--teal); }
.ns-btn-sm[disabled] { opacity: 0.5; cursor: wait; }
.ns-btn-start {
  background: rgba(92,224,167,0.14); border-color: rgba(92,224,167,0.35);
  color: var(--green);
}
.ns-btn-start:hover { background: rgba(92,224,167,0.26); }
.ns-btn-stop {
  background: rgba(255,107,139,0.14); border-color: rgba(255,107,139,0.35);
  color: var(--red);
}
.ns-btn-stop:hover { background: rgba(255,107,139,0.26); }
.ns-btn-save {
  background: rgba(37,214,210,0.18); border-color: rgba(37,214,210,0.4);
  color: var(--teal);
}
.ns-btn-stats {
  background: rgba(163,123,255,0.14); border-color: rgba(163,123,255,0.35);
  color: var(--violet);
}
.ns-btn-reset-2fa {
  background: rgba(255,195,110,0.12); border-color: rgba(255,195,110,0.35);
  color: var(--amber);
}
.ns-btn-reset-2fa:hover { background: rgba(255,195,110,0.22); }
.ns-action-menu {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}
.ns-btn-menu {
  min-width: 34px;
  padding: 5px 0;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  background: rgba(9, 18, 36, 0.92);
}
.ns-action-menu-list {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 4000;
  min-width: 148px;
  max-width: min(220px, calc(100vw - 24px));
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(6, 12, 24, 0.98);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
}
.ns-action-menu.is-open .ns-action-menu-list {
  display: flex;
}
.ns-action-menu-item {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  white-space: nowrap;
}
.ns-monitor-2fa-cell {
  white-space: nowrap;
  font-size: 11px;
}
.ns-monitor-2fa-cell .ns-pill {
  font-size: 10.5px;
  padding: 2px 8px;
}

/* KPI Vue rapide */
.ns-monitor-kpi-shell { display: flex; flex-direction: column; }
.ns-monitor-kpi-title {
  margin: 6px 0 10px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal);
}
.ns-monitor-kpi-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ns-monitor-kpi {
  background: rgba(2,8,18,0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.ns-monitor-kpi .k {
  margin: 0;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mute);
}
.ns-monitor-kpi .v {
  margin: 0;
  font-family: 'Sora', sans-serif; font-size: 18px;
  color: var(--text);
}
.ns-monitor-kpi .v.ns-pos { color: var(--green); }
.ns-monitor-kpi .v.ns-neg { color: var(--red); }

/* Trades / Console / Timeline tables */
.ns-monitor-trades-table { min-width: 480px; font-size: 12px; }
.ns-monitor-console-table { min-width: 600px; font-size: 12px; }
.ns-monitor-timeline-table { min-width: 720px; font-size: 12px; }
.ns-monitor-console-table .ns-console-msg {
  font-family: 'Manrope', monospace; font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 720px; color: var(--text-soft);
}
.ns-monitor-timeline-table .ns-timeline-detail-cell {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 540px; color: var(--text-soft);
  font-family: 'Manrope', monospace; font-size: 11.5px;
}
.ns-lvl-info  { background: rgba(37,214,210,0.10); color: var(--teal); }
.ns-lvl-warn  { background: rgba(255,195,110,0.10); color: var(--amber); }
.ns-lvl-error { background: rgba(255,107,139,0.10); color: var(--red); }

/* Charts canvas backdrop */
#monitorChartCumulative,
#monitorChartDaily,
#monitorChartReasons {
  width: 100%; max-width: 100%; height: 260px;
  background: rgba(2,8,18,0.45);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* Misc */
.ns-monitor-log-snippet {
  font-family: 'Manrope', monospace; font-size: 11px;
  color: var(--text-soft); word-break: break-all;
}
.is-empty { text-align: center; color: var(--text-mute); font-style: italic; padding: 18px 0; }

@media (max-width: 1280px) {
  .ns-monitor-users-table { min-width: 1300px; }
}
@media (max-width: 1080px) {
  .ns-admin-head-stack {
    flex-basis: 100%;
    max-width: none;
  }
  .ns-admin-command-grid {
    grid-template-columns: 1fr;
  }
  .ns-admin-command-section + .ns-admin-command-section {
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid rgba(124,199,245,0.12);
  }
  .ns-monitor-kpi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ns-admin-command-panel {
    padding: 12px;
  }
  .ns-admin-command-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .ns-cerveau-state {
    margin-left: 0;
  }
  .ns-cerveau-actions,
  .ns-access-code-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* --- Mobile polish ----------------------------------------------------- */
@media (max-width: 720px) {
  body.ns-page {
    min-width: 0;
  }
  .ns-section {
    margin-top: 26px;
  }
  .ns-card {
    padding: 18px 16px;
    border-radius: 14px;
  }
  .ns-card-head {
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }
  .ns-h1 {
    font-size: 38px;
    line-height: 1.08;
    margin-bottom: 14px;
  }
  .ns-h1-code {
    font-size: clamp(27px, 8.4vw, 38px);
    line-height: 1.12;
  }
  .ns-eyebrow {
    font-size: 11px;
    letter-spacing: 0.16em;
    margin-bottom: 10px;
  }
  .ns-lead {
    font-size: 15.5px;
    line-height: 1.55;
  }
  .ns-btn,
  .ns-btn-lg {
    min-height: 46px;
    padding: 12px 18px;
  }
  .ns-hero {
    gap: 22px;
  }
  .ns-hero-cinema {
    min-height: 0;
    margin-top: 0;
  }
  .ns-hero-sub {
    font-size: 24px;
  }
  .ns-hero-cta {
    display: grid;
    grid-template-columns: 1fr;
  }
  .ns-hero-cta .ns-btn {
    width: 100%;
  }
  .ns-ai-spotlight-grid {
    grid-template-columns: 1fr;
  }
  .ns-orb-panel {
    padding: 8px 0 0;
  }
  .ns-orb-frame {
    width: min(100%, 300px);
    border-radius: 16px;
  }
  .ns-orb-glow {
    width: 210px;
    height: 210px;
  }
  .ns-orb-sphere {
    width: 184px;
    height: 184px;
  }
  .ns-logo-rotor {
    inset: -17px;
  }
  .ns-logo-rotor-dot {
    transform: rotate(var(--dot-angle)) translateX(104px);
  }
  .ns-orb-sphere-inner {
    width: 148px;
    height: 148px;
  }
  .ns-orb-label {
    bottom: 18px;
    font-size: 10px;
  }
  .ns-stats-strip {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }
  .ns-stat-cell {
    padding: 16px 18px;
  }
  .ns-stat-cell strong {
    font-size: 20px;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }
  .ns-auth-wrap,
  .ns-auth-wrap-wide {
    width: 100%;
    max-width: 520px;
    margin: 28px auto 52px;
  }
  .ns-auth-head {
    margin-bottom: 22px;
  }
  .ns-auth-title {
    font-size: 38px;
  }
  .ns-auth-card-glow {
    padding: 24px 18px;
  }
  .ns-auth-links {
    align-items: flex-start;
  }
  .ns-form input[type="text"],
  .ns-form input[type="email"],
  .ns-form input[type="password"],
  .ns-form input[type="number"],
  .ns-form input:not([type]),
  .ns-form select,
  .ns-form textarea {
    min-width: 0;
    width: 100%;
    font-size: 16px;
  }
  .ns-portal-head {
    display: block;
    margin-bottom: 10px;
  }
  .ns-table {
    table-layout: fixed;
  }
  .ns-table th,
  .ns-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .ns-portal-head-meta {
    margin-top: 14px;
  }
  .ns-portal-head-meta > div {
    width: 100%;
  }
  .ns-portal-live,
  .ns-live-card,
  .ns-live-grid,
  .ns-live-grid > div,
  .ns-remote-card,
  .ns-remote-grid,
  .ns-remote-row,
  .ns-chart-card,
  .ns-chart-wrap {
    min-width: 0;
    max-width: 100%;
  }
  .ns-live-grid {
    gap: 12px;
  }
  .ns-live-grid > div {
    padding: 13px 14px;
  }
  .ns-live-grid strong {
    font-size: 18px;
    overflow-wrap: anywhere;
  }
  .ns-ticker-row {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
  }
  .ns-ticker {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    overflow: hidden;
  }
  .ns-ticker::-webkit-scrollbar {
    display: none;
  }
  .ns-ticker-track {
    animation: ns-ticker-scroll 40s linear infinite;
    will-change: transform;
  }
  .ns-remote-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .ns-remote-actions .ns-btn {
    min-width: 0;
    width: 100%;
  }
  .ns-monitor-api-inline {
    gap: 6px;
  }
  .ns-cell-api-exp {
    width: 156px;
    min-width: 156px;
    font-size: 11px;
  }
  .ns-date-input,
  .ns-remote-row input[type="text"],
  .ns-remote-row input[type="password"] {
    min-height: 46px;
    font-size: 16px;
  }
  .ns-chart-head {
    display: block;
  }
  .ns-chart-tools {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr;
  }
  .ns-chart-group {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .ns-chart-tools-right {
    margin-left: 0;
  }
  #ns-live-chart {
    height: 340px;
  }
  .ns-footer {
    padding: 22px 16px;
    align-items: flex-start;
  }
  .ns-footer-col {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .ns-main {
    padding-left: 12px;
    padding-right: 12px;
  }
  .ns-nav {
    left: 12px;
    right: 12px;
  }
  .ns-brand-text strong {
    font-size: 15px;
  }
  .ns-h1 {
    font-size: 34px;
  }
  .ns-h1-code {
    font-size: clamp(24px, 7.8vw, 32px);
  }
  .ns-hero-sub {
    font-size: 21px;
  }
  .ns-card {
    padding: 16px 14px;
  }
}

.ns-subscription-hero .ns-lead {
  max-width: 820px;
}
.ns-subscribe-page {
  display: grid;
  gap: 26px;
}
.ns-subscribe-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 22px;
  align-items: stretch;
  min-height: 520px;
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid rgba(124,199,245,.16);
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(37,214,210,.28), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(163,123,255,.25), transparent 30%),
    linear-gradient(135deg, rgba(8,18,34,.98), rgba(6,10,24,.94));
  box-shadow: 0 34px 100px rgba(0,0,0,.36);
}
.ns-subscribe-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -36% 34%;
  height: 320px;
  background: radial-gradient(ellipse, rgba(37,214,210,.16), transparent 68%);
  pointer-events: none;
}
.ns-subscribe-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ns-subscribe-copy .ns-h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: .94;
  letter-spacing: -.07em;
}
.ns-subscribe-copy .ns-lead {
  max-width: 760px;
  font-size: 18px;
}
.ns-subscribe-hero-actions,
.ns-subscribe-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.ns-subscribe-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.ns-subscribe-badges span {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,.045);
  color: var(--text-soft);
  font: 800 11px/1 Manrope, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ns-subscribe-pass {
  position: relative;
  z-index: 1;
  align-self: center;
  min-height: 420px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.025)),
    radial-gradient(circle at 80% 0%, rgba(124,199,245,.20), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 28px 80px rgba(0,0,0,.30);
  display: grid;
  align-content: space-between;
  gap: 22px;
}
.ns-subscribe-pass-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-mute);
  font: 800 11px/1 Manrope, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ns-subscribe-pass-top strong {
  color: #9ff8ec;
}
.ns-subscribe-price strong {
  display: block;
  font: 900 clamp(54px, 5vw, 76px)/.9 Sora, sans-serif;
  letter-spacing: -.08em;
  color: var(--text);
}
.ns-subscribe-price span {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-weight: 800;
}
.ns-subscribe-pass ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ns-subscribe-pass li {
  display: flex;
  gap: 9px;
  color: var(--text-soft);
  font-weight: 700;
}
.ns-subscribe-pass li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: #5ce0a7;
  box-shadow: 0 0 15px rgba(92,224,167,.85);
  flex: 0 0 auto;
}
.ns-subscribe-pass-status {
  border-radius: 999px;
  padding: 11px 14px;
  text-align: center;
  font: 900 11px/1 Manrope, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ns-subscribe-pass-status.is-active {
  color: #04180f;
  background: linear-gradient(135deg, #5ce0a7, #25d6d2);
}
.ns-subscribe-pass-status.is-pending {
  color: #dcecff;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.055);
}
.ns-subscribe-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.ns-subscribe-product {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid rgba(124,199,245,.16);
  border-radius: 28px;
  padding: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37,214,210,.16), transparent 42%),
    linear-gradient(135deg, rgba(10,20,36,.95), rgba(7,12,25,.92));
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(220px, .72fr);
  gap: 18px;
  align-items: center;
}
.ns-subscribe-product.is-indicator {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 290px);
}
.ns-subscribe-product.is-indicator > div:first-child {
  align-self: center;
}
.ns-subscribe-product h2 {
  margin: 0 0 12px;
  font: 900 28px/1.05 Sora, sans-serif;
  letter-spacing: -.04em;
}
.ns-subscribe-product p {
  color: var(--text-soft);
}
.ns-subscribe-ticket {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 22px;
  background: rgba(2,8,18,.62);
  box-shadow: 0 18px 44px rgba(0,0,0,.25);
}
.ns-subscribe-ticket span,
.ns-subscribe-pay-grid span,
.ns-subscribe-wallet-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-mute);
  font: 900 11px/1.2 Manrope, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ns-subscribe-ticket strong {
  display: block;
  color: #5ce0a7;
  font: 900 34px/1 Sora, sans-serif;
}
.ns-subscribe-ticket small {
  display: block;
  margin-top: 12px;
  color: var(--text-soft);
}
.ns-subscribe-chart {
  position: relative;
  width: min(100%, 290px);
  height: 210px;
  padding: 24px 16px;
  display: flex;
  align-items: end;
  justify-self: end;
  align-self: center;
  gap: 7px;
  overflow: hidden;
  border: 1px solid rgba(37,214,210,.18);
  border-radius: 24px;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    rgba(2,8,18,.62);
  background-size: 100% 42px, 42px 100%;
}
.ns-subscribe-chart i {
  flex: 1;
  min-width: 4px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #5ce0a7, #168872);
}
.ns-subscribe-chart i:nth-child(4n) {
  background: linear-gradient(180deg, #ff6b8b, #7b2444);
}
.ns-subscribe-chart b {
  position: absolute;
  top: 26px;
  left: 28px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #5ce0a7;
  color: #03140f;
  font: 900 11px/1 Manrope, sans-serif;
}
.ns-subscribe-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.ns-subscribe-flow > div {
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255,255,255,.035);
}
.ns-subscribe-flow span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d6d2, #a37bff);
  color: #02101a;
  font-weight: 900;
}
.ns-subscribe-flow strong {
  display: block;
  color: var(--text);
  font: 900 16px/1.2 Sora, sans-serif;
}
.ns-subscribe-flow p {
  margin: 8px 0 0;
  color: var(--text-soft);
}
.ns-subscribe-checkout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(360px, 1.12fr);
  gap: 18px;
  align-items: stretch;
}
.ns-subscribe-payment,
.ns-subscribe-form-card {
  border: 1px solid rgba(124,199,245,.16);
  border-radius: 28px;
  padding: 28px;
  background:
    radial-gradient(circle at 0% 0%, rgba(37,214,210,.14), transparent 38%),
    linear-gradient(135deg, rgba(10,20,36,.96), rgba(7,12,25,.94));
}
.ns-subscribe-payment h2,
.ns-subscribe-form-card h2 {
  margin: 0 0 18px;
  font: 900 28px/1.1 Sora, sans-serif;
  letter-spacing: -.04em;
}
.ns-subscribe-payment h2 span {
  color: #9ff8ec;
}
.ns-subscribe-pay-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.ns-subscribe-pay-grid div,
.ns-subscribe-wallet-box {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,.04);
}
.ns-subscribe-pay-grid strong {
  color: var(--text);
  font: 900 18px/1.2 Sora, sans-serif;
}
.ns-subscribe-wallet-box code {
  display: block;
  cursor: pointer;
  overflow-wrap: anywhere;
  color: #9ff8ec;
  border: 1px solid rgba(37,214,210,.22);
  border-radius: 14px;
  padding: 12px;
  background: rgba(37,214,210,.08);
}
.ns-subscribe-wallet-box small {
  display: block;
  margin-top: 9px;
  color: var(--text-mute);
}
.ns-subscription-card {
  display: grid;
  gap: 18px;
  overflow: hidden;
}
.ns-subscription-card .ns-h1 {
  margin-bottom: 0;
}
.ns-subscription-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ns-subscription-steps > div,
.ns-subscription-paybox > div {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,.035);
}
.ns-subscription-steps span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d6d2, #a37bff);
  color: #02101a;
  font: 900 12px/1 Manrope, sans-serif;
}
.ns-subscription-steps strong,
.ns-subscription-paybox strong {
  display: block;
  color: var(--text);
  font: 800 16px/1.25 Sora, sans-serif;
}
.ns-subscription-steps p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 13px;
}
.ns-subscription-paybox {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ns-subscription-paybox span,
.ns-subscription-form label > span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-mute);
  font: 800 11px/1.2 Manrope, sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.ns-subscription-paybox .is-wide {
  grid-column: 1 / -1;
}
.ns-subscription-paybox code {
  display: block;
  cursor: pointer;
  overflow-wrap: anywhere;
  color: #9ff8ec;
  background: rgba(37,214,210,.08);
  border: 1px solid rgba(37,214,210,.20);
  border-radius: 12px;
  padding: 10px 12px;
}
.ns-subscription-form {
  display: grid;
  gap: 14px;
}
.ns-subscription-form input {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(2,10,22,.78);
  color: var(--text);
  padding: 0 14px;
  font: 700 14px/1.2 Manrope, sans-serif;
  outline: none;
}
.ns-subscription-form input:focus {
  border-color: rgba(37,214,210,.52);
  box-shadow: 0 0 0 3px rgba(37,214,210,.12);
}
.ns-totp-setup {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(37,214,210,.26);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(37,214,210,.16), transparent 42%),
    rgba(2,10,22,.62);
}
.ns-totp-setup strong {
  color: var(--text);
  font: 900 15px/1.2 Manrope, sans-serif;
}
.ns-totp-setup p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}
.ns-totp-setup span {
  margin-top: 4px;
  color: var(--text-mute);
  font: 800 10px/1.2 Manrope, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ns-totp-setup code {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(37,214,210,.20);
  border-radius: 12px;
  background: rgba(37,214,210,.08);
  color: #9ff8ec;
  font: 800 12px/1.35 "JetBrains Mono", Consolas, monospace;
  overflow-wrap: anywhere;
}
.ns-totp-setup-qr {
  width: min(220px, 100%);
  aspect-ratio: 1 / 1;
  justify-self: center;
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(5,12,22,0.08);
}
.ns-totp-setup-qr img {
  width: 100%;
  height: auto;
  display: block;
}
.ns-subscription-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.ns-subscription-status {
  margin: 0;
  color: var(--text-soft);
  font-weight: 700;
}
.ns-subscription-status[data-level="ok"] { color: #5ce0a7; }
.ns-subscription-status[data-level="warn"] { color: #ffc36e; }
.ns-subscription-status[data-level="err"] { color: #ff6b8b; }
.ns-subscription-product {
  min-height: 190px;
}
.ns-tool-market {
  display: grid;
  gap: 18px;
}
.ns-tool-market-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, .98fr);
  gap: 18px;
  align-items: stretch;
}
.ns-tool-market-copy,
.ns-tool-preview,
.ns-tool-login-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(124,199,245,.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(37,214,210,.18), transparent 34%),
    linear-gradient(135deg, rgba(10,20,36,.96), rgba(8,13,28,.92));
  box-shadow: 0 24px 80px rgba(0,0,0,.30);
}
.ns-tool-market-copy {
  min-height: 520px;
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ns-tool-market-copy .ns-h1 {
  max-width: 920px;
  font-size: clamp(46px, 6.3vw, 86px);
  line-height: .95;
  letter-spacing: -.065em;
  margin-bottom: 18px;
}
.ns-tool-market-copy .ns-lead {
  max-width: 760px;
  font-size: 18px;
}
.ns-tool-market-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}
.ns-tool-feature-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ns-tool-feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-soft);
  font-weight: 700;
}
.ns-tool-feature-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 999px;
  background: #25d6d2;
  box-shadow: 0 0 18px rgba(37,214,210,.8);
}
.ns-tool-preview {
  min-height: 520px;
  padding: 22px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 80% 15%, rgba(163,123,255,.22), transparent 38%),
    linear-gradient(135deg, rgba(5,10,20,.98), rgba(13,18,37,.94));
}
.ns-tool-ticket-mock {
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.ns-tool-ticket-mock > div,
.ns-tool-ticket-mock p {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255,255,255,.045);
}
.ns-tool-ticket-mock span,
.ns-tool-chart-top span,
.ns-tool-chart-foot span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-mute);
  font: 900 11px/1 Manrope, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ns-tool-ticket-mock strong {
  color: var(--text);
  font: 900 28px/1 Sora, sans-serif;
}
.ns-tool-ticket-mock strong.is-pass {
  color: #5ce0a7;
}
.ns-tool-ticket-mock p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text-soft);
}
.ns-tool-chart-mock {
  width: min(100%, 560px);
  border: 1px solid rgba(37,214,210,.20);
  border-radius: 24px;
  background: rgba(2,8,18,.82);
  overflow: hidden;
}
.ns-tool-chart-top,
.ns-tool-chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ns-tool-chart-foot {
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 0;
}
.ns-tool-chart-top strong,
.ns-tool-chart-foot strong {
  color: #9ff8ec;
}
.ns-tool-chart-grid {
  position: relative;
  display: flex;
  align-items: end;
  gap: 7px;
  height: 300px;
  padding: 34px 22px;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 100% 54px, 54px 100%;
}
.ns-tool-chart-grid i {
  flex: 1;
  min-width: 4px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #5ce0a7, #178f7e);
  opacity: .88;
}
.ns-tool-chart-grid i:nth-child(3n) {
  background: linear-gradient(180deg, #ff6b8b, #7b2444);
}
.ns-tool-chart-grid b {
  position: absolute;
  padding: 7px 10px;
  border-radius: 999px;
  font: 900 11px/1 Manrope, sans-serif;
  letter-spacing: .08em;
}
.ns-tool-chart-grid .is-long {
  left: 22%;
  top: 28%;
  color: #02150f;
  background: #5ce0a7;
}
.ns-tool-chart-grid .is-close {
  right: 18%;
  top: 18%;
  color: #1b0610;
  background: #ff6b8b;
}
.ns-tool-chart-grid em {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 58%;
  border-top: 2px dashed rgba(255,195,110,.9);
}
.ns-tool-login-card {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr);
  gap: 18px;
  padding: 24px;
  align-items: center;
}
.ns-tool-login-card h2 {
  margin: 0 0 8px;
}
.ns-tool-login-form {
  min-width: 0;
}
.ns-sub-status {
  display: inline-flex;
  align-items: center;
  min-width: 72px;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text-soft);
  font: 900 11px/1 Manrope, sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.ns-sub-status.is-active {
  color: #5ce0a7;
  border-color: rgba(92,224,167,.35);
  background: rgba(92,224,167,.10);
}
.ns-sub-status.is-pending {
  color: #ffc36e;
  border-color: rgba(255,195,110,.35);
  background: rgba(255,195,110,.10);
}
.ns-sub-status.is-expired,
.ns-sub-status.is-disabled {
  color: #ff6b8b;
  border-color: rgba(255,107,139,.35);
  background: rgba(255,107,139,.10);
}
@media (max-width: 820px) {
  .ns-subscribe-hero,
  .ns-subscribe-products,
  .ns-subscribe-product,
  .ns-subscribe-flow,
  .ns-subscribe-checkout {
    grid-template-columns: 1fr;
  }
  .ns-subscribe-hero {
    min-height: 0;
    padding: 22px;
  }
  .ns-subscribe-product {
    min-height: 0;
    padding: 22px;
    gap: 16px;
  }
  .ns-subscribe-product.is-indicator {
    grid-template-columns: 1fr;
  }
  .ns-subscribe-product h2 {
    font-size: 24px;
  }
  .ns-subscribe-product.is-indicator > div:first-child {
    align-self: start;
  }
  .ns-subscribe-chart {
    width: 100%;
    max-width: none;
    height: 220px;
    justify-self: stretch;
    align-self: stretch;
  }
  .ns-subscribe-pass {
    min-height: 0;
  }
  .ns-subscribe-payment,
  .ns-subscribe-form-card {
    padding: 22px;
  }
  .ns-subscription-steps,
  .ns-subscription-paybox {
    grid-template-columns: 1fr;
  }
  .ns-tool-market-hero,
  .ns-tool-login-card {
    grid-template-columns: 1fr;
  }
  .ns-tool-market-copy,
  .ns-tool-preview {
    min-height: 0;
  }
  .ns-tool-ticket-mock {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .ns-subscribe-hero,
  .ns-subscribe-pass,
  .ns-subscribe-product,
  .ns-subscribe-payment,
  .ns-subscribe-form-card {
    border-radius: 24px;
  }
  .ns-subscribe-copy .ns-h1 {
    font-size: clamp(32px, 10vw, 44px);
  }
  .ns-subscribe-product h2,
  .ns-subscribe-payment h2,
  .ns-subscribe-form-card h2 {
    font-size: 22px;
  }
  .ns-subscribe-chart {
    height: 196px;
    padding: 20px 14px;
    gap: 6px;
  }
  .ns-subscribe-chart b {
    top: 20px;
    left: 20px;
  }
  .ns-subscribe-ticket {
    padding: 18px;
  }
  .ns-subscribe-ticket strong {
    font-size: 28px;
  }
  .ns-subscribe-pay-grid {
    grid-template-columns: 1fr;
  }
  .ns-subscribe-hero-actions,
  .ns-subscription-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ns-subscribe-hero-actions .ns-btn,
  .ns-subscription-actions .ns-btn {
    width: 100%;
  }
}
