/* ══════════════════════════════════════════════════════════════
   MetaToolsLab — Dark Theme (public marketing pages)
   Applied when <body class="mtl-dark"> is present.
   ══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────────────── */
body.mtl-dark {
  --mtl-bg:           #020B18;
  --mtl-panel:        rgba(4, 18, 36, 0.68);
  --mtl-panel-strong: rgba(5, 22, 44, 0.88);
  --mtl-cyan:         #00CFFF;
  --mtl-green:        #8CFF00;
  --mtl-white:        #F4FBFF;
  --mtl-muted:        #9FB4C8;
  --mtl-border:       rgba(255, 255, 255, 0.10);
  --mtl-border-glow:  rgba(0, 207, 255, 0.28);
  --mtl-shadow:       0 24px 80px rgba(0, 0, 0, 0.42);
  --mtl-radius:       24px;

  background: var(--mtl-bg);
  color: var(--mtl-white);
  overflow-x: hidden;
}

/* ── Canvas Background ──────────────────────────────────────── */
#mtl-bg-canvas-container {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(0, 207, 255, 0.16), transparent 34%),
    radial-gradient(circle at 28% 52%, rgba(140, 255, 0, 0.10), transparent 28%),
    linear-gradient(180deg, #020B18 0%, #031326 58%, #020B18 100%);
}
#mtl-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mtl-bloom-layer {
  position: fixed;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 45% 22%, rgba(0, 207, 255, 0.12), transparent 35%),
    radial-gradient(circle at 70% 58%, rgba(140, 255, 0, 0.08), transparent 32%);
  filter: blur(28px);
}

/* ── Navbar override for dark pages ─────────────────────────── */
body.mtl-dark .navbar {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 10px 18px;
  border: 1px solid var(--mtl-border);
  border-radius: 999px;
  background: rgba(2, 11, 24, 0.52);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--mtl-shadow);
  position: sticky;
  top: 16px;
  left: 0; right: 0;
  z-index: 100;
  border-bottom: none;
}
body.mtl-dark .navbar-inner {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
body.mtl-dark .navbar--scrolled {
  background: rgba(2, 11, 24, 0.82);
  border-color: rgba(0, 207, 255, 0.18);
}
body.mtl-dark .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mtl-white);
  text-decoration: none;
}
body.mtl-dark .navbar-brand img {
  height: 90px;
  width: auto;
  display: block;
}
body.mtl-dark .brand-text { display: none; } /* hide text, using logo image */
body.mtl-dark .navbar-menu a {
  color: var(--mtl-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .18s;
}
body.mtl-dark .navbar-menu a:hover { color: var(--mtl-white); text-decoration: none; }
body.mtl-dark .navbar-menu .btn-primary {
  background: linear-gradient(135deg, rgba(0,207,255,.22), rgba(140,255,0,.12));
  border: 1px solid rgba(0,207,255,.4);
  color: var(--mtl-white);
  border-radius: 999px;
  padding: .4rem 1.1rem;
  font-size: .84rem;
}
body.mtl-dark .navbar-menu .btn-primary:hover {
  background: linear-gradient(135deg, rgba(0,207,255,.34), rgba(140,255,0,.20));
  border-color: rgba(0,207,255,.65);
  box-shadow: 0 0 20px rgba(0,207,255,.3);
  color: var(--mtl-white);
}

/* ── Buttons (global dark overrides) ───────────────────────── */
body.mtl-dark .btn-primary {
  background: linear-gradient(135deg, rgba(0,207,255,.25), rgba(140,255,0,.14));
  border: 1px solid rgba(0,207,255,.45);
  color: var(--mtl-white);
}
body.mtl-dark .btn-primary:hover {
  background: linear-gradient(135deg, rgba(0,207,255,.38), rgba(140,255,0,.22));
  border-color: rgba(0,207,255,.7);
  box-shadow: 0 0 22px rgba(0,207,255,.28);
  color: var(--mtl-white);
}
body.mtl-dark .btn-outline {
  background: transparent;
  border: 1px solid rgba(0,207,255,.35);
  color: var(--mtl-cyan);
}
body.mtl-dark .btn-outline:hover {
  background: rgba(0,207,255,.1);
  border-color: rgba(0,207,255,.6);
  color: var(--mtl-white);
}

/* ── Typography ─────────────────────────────────────────────── */
body.mtl-dark h1,
body.mtl-dark h2,
body.mtl-dark h3 { color: var(--mtl-white); }

body.mtl-dark .text-gradient {
  background: linear-gradient(135deg, #00CFFF 0%, #8CFF00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Sections ───────────────────────────────────────────────── */
body.mtl-dark .section { position: relative; }
body.mtl-dark .section-alt { background: rgba(4, 18, 36, 0.5); }
body.mtl-dark .section-header p { color: var(--mtl-muted); }
body.mtl-dark .page-hero { background: transparent; }
body.mtl-dark .page-hero p { color: var(--mtl-muted); }

/* ── MTL Kicker Pills ───────────────────────────────────────── */
.mtl-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid rgba(0, 207, 255, 0.32);
  border-radius: 999px;
  background: rgba(0, 207, 255, 0.08);
  color: #BDEFFF;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 11px;
  box-shadow: 0 0 20px rgba(0, 207, 255, 0.10);
}
.mtl-kicker--muted {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--mtl-muted);
  box-shadow: none;
}

/* ── Hero ───────────────────────────────────────────────────── */
body.mtl-dark .hero {
  min-height: 700px;
  padding: 80px 0 56px;
  display: flex;
  align-items: center;
}
body.mtl-dark .hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
body.mtl-dark .badge-row { margin-bottom: 1.5rem; }
body.mtl-dark .hero-text h1 {
  font-size: clamp(42px, 6.5vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 1.4rem;
}
body.mtl-dark .hero-subtitle {
  color: var(--mtl-muted);
  font-size: 19px;
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: 2.2rem;
}
body.mtl-dark .hero-note { color: var(--mtl-muted); font-size: .85rem; margin-top: .85rem; }

/* ── MTL CTA Buttons ────────────────────────────────────────── */
.mtl-cta {
  --btn-bg: rgba(3, 19, 38, 0.72);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(0, 207, 255, 0.46);
  border-radius: 999px;
  padding: 14px 26px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--mtl-white);
  background:
    linear-gradient(135deg, rgba(0,207,255,.18), rgba(140,255,0,.08)),
    var(--btn-bg);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -.02em;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow .28s ease, border-color .28s ease;
}
.mtl-cta:hover { color: var(--mtl-white); text-decoration: none; }
.mtl-cta.secondary {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
  color: #DDECF6;
}
.mtl-cta::before {
  content: "";
  position: absolute;
  inset: -100%;
  z-index: -1;
  background:
    radial-gradient(circle at 30% 55%, rgba(140,255,0,.32), transparent 26%),
    radial-gradient(circle at 65% 40%, rgba(0,207,255,.36), transparent 32%);
  transform: scale(.2);
  opacity: 0;
  transition: transform .42s ease, opacity .42s ease;
}
.mtl-cta:hover::before { transform: scale(1); opacity: 1; }

.mtl-button-bubble {
  position: absolute;
  bottom: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, white, #8CFF00 45%, #00CFFF);
  animation: mtlButtonBubble .86s ease-out forwards;
  pointer-events: none;
}
@keyframes mtlButtonBubble {
  to { transform: translateY(-50px) scale(1.5); opacity: 0; }
}

/* ── Hero Actions ───────────────────────────────────────────── */
body.mtl-dark .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: .5rem; }

/* ── Flow Diagram ───────────────────────────────────────────── */
body.mtl-dark .flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background: transparent;
  border: none;
}
body.mtl-dark .flow-node {
  border: 1px solid var(--mtl-border);
  background: var(--mtl-panel);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--mtl-radius);
  padding: 18px 24px;
  text-align: center;
  min-width: 160px;
  font-size: .9rem;
  font-weight: 600;
  box-shadow: var(--mtl-shadow);
  position: relative;
  overflow: hidden;
  color: var(--mtl-white);
}
body.mtl-dark .flow-node::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg, transparent, rgba(0,207,255,.18), rgba(140,255,0,.14), transparent);
  animation: mtlPanelSpin 9s linear infinite;
  opacity: .35;
}
body.mtl-dark .flow-node > * { position: relative; z-index: 1; }
body.mtl-dark .flow-icon { font-size: 1.8rem; margin-bottom: .35rem; }
body.mtl-dark .flow-node small { color: var(--mtl-muted); font-weight: 400; font-size: .78rem; }
body.mtl-dark .flow-node.cloud {
  background: linear-gradient(135deg, rgba(0,207,255,.15), rgba(140,255,0,.08)), var(--mtl-panel);
  border-color: rgba(0,207,255,.3);
  box-shadow: 0 0 40px rgba(0,207,255,.18), var(--mtl-shadow);
}
body.mtl-dark .flow-slaves { display: flex; flex-direction: column; gap: 8px; width: 100%; }
body.mtl-dark .flow-slaves .flow-node { min-width: 0; padding: 12px 18px; }
body.mtl-dark .flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  gap: 4px;
}
body.mtl-dark .flow-label {
  color: var(--mtl-muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .18s;
}
body.mtl-dark .arrow-line {
  width: 2px;
  height: 28px;
  background: linear-gradient(180deg, rgba(0,207,255,.6), rgba(140,255,0,.4));
  border-radius: 999px;
  position: relative;
}
body.mtl-dark .arrow-line::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid rgba(140,255,0,.7);
}
body.mtl-dark .flow-arrow--pulse .flow-label { color: #00CFFF; }
body.mtl-dark .flow-arrow--pulse .arrow-line {
  box-shadow: 0 0 12px rgba(0,207,255,.7);
}

@keyframes mtlPanelSpin { to { transform: rotate(360deg); } }

/* ── Social Proof Strip ─────────────────────────────────────── */
body.mtl-dark .strip {
  background: rgba(4, 18, 36, 0.6);
  border-top: 1px solid var(--mtl-border);
  border-bottom: 1px solid var(--mtl-border);
  padding: 1rem 0;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  overflow: hidden;
  gap: 0;
}
body.mtl-dark .ticker-label {
  flex-shrink: 0;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--mtl-muted);
  padding: 0 1.5rem 0 1.75rem;
  white-space: nowrap;
  border-right: 1px solid var(--mtl-border);
  margin-right: 0;
  position: relative;
  z-index: 2;
  background: rgba(4, 18, 36, 0.9);
}
body.mtl-dark .ticker-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  /* fade edges */
  mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
body.mtl-dark .ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  width: max-content;
  animation: mtl-ticker 40s linear infinite;
}
body.mtl-dark .ticker-wrap:hover .ticker-track { animation-play-state: paused; }
body.mtl-dark .strip-item {
  font-size: .875rem;
  font-weight: 600;
  color: var(--mtl-muted);
  padding: 0 .25rem;
  transition: color .18s;
}
body.mtl-dark .ticker-track:hover .strip-item:hover { color: var(--mtl-white); }
body.mtl-dark .strip-sep {
  color: rgba(255,255,255,.18);
  padding: 0 .75rem;
  font-size: .75rem;
}
@keyframes mtl-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Steps (How it works) ───────────────────────────────────── */
body.mtl-dark .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
body.mtl-dark .step {
  border: 1px solid var(--mtl-border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)),
    var(--mtl-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--mtl-radius);
  padding: 2rem;
  box-shadow: var(--mtl-shadow);
  transition: border-color .25s, box-shadow .25s;
}
body.mtl-dark .step:hover {
  border-color: rgba(0,207,255,.26);
  box-shadow: 0 0 32px rgba(0,207,255,.12), var(--mtl-shadow);
}
body.mtl-dark .step-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(0,207,255,.1);
  border: 1px solid rgba(0,207,255,.22);
  color: var(--mtl-cyan);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
}
body.mtl-dark .step h3 { margin-bottom: .6rem; font-size: 1.05rem; }
body.mtl-dark .step p { color: var(--mtl-muted); font-size: .92rem; line-height: 1.6; }

/* ── Feature Cards ──────────────────────────────────────────── */
body.mtl-dark .features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
body.mtl-dark .feature-card {
  border: 1px solid var(--mtl-border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)),
    var(--mtl-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--mtl-radius);
  padding: 1.75rem;
  box-shadow: var(--mtl-shadow);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
body.mtl-dark .feature-card:hover {
  border-color: rgba(0,207,255,.24);
  box-shadow: 0 0 28px rgba(0,207,255,.10), var(--mtl-shadow);
  transform: translateY(-3px);
}
body.mtl-dark .feature-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: rgba(0,207,255,.10);
  border: 1px solid rgba(0,207,255,.22);
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}
body.mtl-dark .feature-card h3 { font-size: .97rem; margin-bottom: .5rem; }
body.mtl-dark .feature-card p { color: var(--mtl-muted); font-size: .875rem; line-height: 1.6; }

/* ── Pricing Cards ──────────────────────────────────────────── */
body.mtl-dark .pricing-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
body.mtl-dark .pricing-grid--full { grid-template-columns: repeat(5, 1fr); }
body.mtl-dark .pricing-card {
  border: 1px solid var(--mtl-border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)),
    var(--mtl-panel);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--mtl-radius);
  padding: 2rem 1.75rem;
  position: relative;
  box-shadow: var(--mtl-shadow);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
body.mtl-dark .pricing-card:hover {
  border-color: rgba(0,207,255,.24);
  box-shadow: 0 0 32px rgba(0,207,255,.12), var(--mtl-shadow);
  transform: translateY(-4px);
}
body.mtl-dark .pricing-card--popular {
  border-color: rgba(0,207,255,.46);
  background:
    linear-gradient(180deg, rgba(0,207,255,.10), rgba(140,255,0,.05)),
    var(--mtl-panel-strong);
  box-shadow: 0 0 48px rgba(0,207,255,.18), var(--mtl-shadow);
}
body.mtl-dark .popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #00CFFF, #8CFF00);
  color: #020B18;
  font-size: .72rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
body.mtl-dark .pricing-card h3 { margin-bottom: 1.25rem; font-size: 1.05rem; }
body.mtl-dark .price-amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; }
body.mtl-dark .price-period { color: var(--mtl-muted); font-size: .9rem; }
body.mtl-dark .price-note { color: var(--mtl-muted); font-size: .78rem; margin-top: .3rem; }
body.mtl-dark .plan-limits { margin: 1.25rem 0; padding: 1rem 0; border-top: 1px solid var(--mtl-border); border-bottom: 1px solid var(--mtl-border); display: flex; flex-direction: column; gap: .4rem; }
body.mtl-dark .limit-item { color: var(--mtl-muted); font-size: .85rem; }
body.mtl-dark .limit-item strong { color: var(--mtl-white); }
body.mtl-dark .plan-features { list-style: none; padding: 0; margin: 1.1rem 0 1.5rem; display: flex; flex-direction: column; gap: .55rem; }
body.mtl-dark .plan-features li { color: var(--mtl-muted); font-size: .875rem; padding-left: 1.4rem; position: relative; }
body.mtl-dark .plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--mtl-cyan); font-weight: 700; }

/* ── Billing toggle ─────────────────────────────────────────── */
body.mtl-dark .billing-toggle { display: flex; gap: .5rem; background: rgba(4,18,36,.7); border: 1px solid var(--mtl-border); border-radius: 999px; padding: 4px; margin-top: 1.5rem; display: inline-flex; }
body.mtl-dark .toggle-btn { background: transparent; border: none; border-radius: 999px; padding: .45rem 1.1rem; font-size: .85rem; font-weight: 600; color: var(--mtl-muted); cursor: pointer; transition: all .2s; }
body.mtl-dark .toggle-btn.active { background: rgba(0,207,255,.14); color: var(--mtl-white); box-shadow: 0 0 14px rgba(0,207,255,.2); }
body.mtl-dark .save-badge { background: rgba(140,255,0,.18); color: #8CFF00; font-size: .72rem; padding: 2px 7px; border-radius: 999px; margin-left: .4rem; }

/* ── "All Plans Include" grid ───────────────────────────────── */
body.mtl-dark .included-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 2rem; }
body.mtl-dark .included-item {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--mtl-border);
  border-radius: 14px;
  padding: .8rem 1rem;
  font-size: .82rem;
  color: var(--mtl-muted);
}
body.mtl-dark .included-item::before { content: none; }

/* ── FAQ ────────────────────────────────────────────────────── */
body.mtl-dark .faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
body.mtl-dark .faq-item {
  border: 1px solid var(--mtl-border);
  border-radius: 16px;
  background: var(--mtl-panel);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: border-color .2s;
}
body.mtl-dark .faq-item:hover { border-color: rgba(0,207,255,.24); }
body.mtl-dark .faq-item[open] { border-color: rgba(0,207,255,.32); }
body.mtl-dark .faq-item summary {
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
body.mtl-dark .faq-item summary::-webkit-details-marker { display: none; }
body.mtl-dark .faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--mtl-cyan);
  line-height: 1;
  flex-shrink: 0;
}
body.mtl-dark .faq-item[open] summary::after { content: "−"; }
body.mtl-dark .faq-item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--mtl-muted);
  font-size: .9rem;
  line-height: 1.7;
  margin: 0;
}

/* ── CTA Section ────────────────────────────────────────────── */
body.mtl-dark .cta-section {
  position: relative;
  overflow: hidden;
  background: transparent;
}
body.mtl-dark .cta-section::before {
  content: "";
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,207,255,.14), transparent 40%),
    radial-gradient(circle at 30% 60%, rgba(140,255,0,.08), transparent 35%);
  pointer-events: none;
}
body.mtl-dark .cta-inner { position: relative; z-index: 1; text-align: center; max-width: 640px; margin: 0 auto; }
body.mtl-dark .cta-inner h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
body.mtl-dark .cta-inner p { color: var(--mtl-muted); margin-bottom: 2rem; font-size: 1.05rem; }

/* ── Pricing feature-list checkmark ─────────────────────────── */
body.mtl-dark .plan-features li { display: flex; align-items: baseline; gap: .5rem; font-size: .875rem; color: var(--mtl-muted); padding: .3rem 0; }
body.mtl-dark .feat-check { color: var(--mtl-cyan); font-size: .8rem; flex-shrink: 0; }

/* ── Comparison table ───────────────────────────────────────── */
body.mtl-dark .compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
body.mtl-dark .compare-table thead th {
  padding: .9rem 1rem;
  text-align: center;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mtl-muted);
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--mtl-border);
}
body.mtl-dark .compare-table thead th:first-child { text-align: left; }
body.mtl-dark .compare-table thead th.compare-popular {
  background: rgba(0,207,255,.07);
  color: var(--mtl-cyan);
  border-top: 2px solid var(--mtl-cyan);
}
body.mtl-dark .compare-table tbody td {
  padding: .75rem 1rem;
  text-align: center;
  color: var(--mtl-muted);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
body.mtl-dark .compare-table tbody td:first-child { text-align: left; color: var(--mtl-white); }
body.mtl-dark .compare-table tbody td.compare-popular {
  background: rgba(0,207,255,.04);
  color: var(--mtl-white);
  font-weight: 600;
}
body.mtl-dark .compare-table tr.compare-section td {
  padding: 1rem 1rem .5rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mtl-cyan);
  background: rgba(0,207,255,.04);
  border-bottom: 1px solid rgba(0,207,255,.12);
  text-align: left;
}
body.mtl-dark .compare-table tbody tr:last-child td { border-bottom: none; }
body.mtl-dark .compare-table tbody tr:hover td { background: rgba(255,255,255,.02); }
body.mtl-dark .compare-table tbody tr:hover td.compare-popular { background: rgba(0,207,255,.07); }

/* ── Arch Diagrams (features page) ─────────────────────────── */
body.mtl-dark .arch-diagram {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--mtl-panel);
  border: 1px solid var(--mtl-border);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(20px);
}
body.mtl-dark .arch-node {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--mtl-border);
  border-radius: 12px;
  padding: .65rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--mtl-white);
}
body.mtl-dark .arch-node--center {
  background: rgba(0,207,255,.1);
  border-color: rgba(0,207,255,.3);
  color: #BDEFFF;
}
body.mtl-dark .arch-arrow { color: var(--mtl-cyan); font-weight: 700; font-size: .8rem; }
body.mtl-dark .arch-nodes-right { display: flex; flex-direction: column; gap: 6px; }
body.mtl-dark .feature-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 4rem; }
body.mtl-dark .feature-detail--reverse { direction: rtl; }
body.mtl-dark .feature-detail--reverse > * { direction: ltr; }
body.mtl-dark .feature-detail-text h2 { margin-bottom: 1rem; font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
body.mtl-dark .feature-detail-text p { color: var(--mtl-muted); margin-bottom: .75rem; line-height: 1.7; }
body.mtl-dark .feature-detail-text ul { color: var(--mtl-muted); padding-left: 1.2rem; }
body.mtl-dark .feature-detail-text li { margin-bottom: .5rem; line-height: 1.6; }
body.mtl-dark .feature-detail-text li strong { color: var(--mtl-white); }

/* ── Blog ───────────────────────────────────────────────────── */
body.mtl-dark .blog-card,
body.mtl-dark .blog-card--compact {
  background: var(--mtl-panel);
  border: 1px solid var(--mtl-border);
  border-radius: var(--mtl-radius);
}
body.mtl-dark .blog-card:hover { box-shadow: 0 0 28px rgba(0,207,255,.08); border-color: rgba(0,207,255,.2); }
body.mtl-dark .blog-card h2 a,
body.mtl-dark .blog-card h3 a { color: var(--mtl-white); }
body.mtl-dark .blog-card h2 a:hover,
body.mtl-dark .blog-card h3 a:hover { color: var(--mtl-cyan); }
body.mtl-dark .blog-card-excerpt,
body.mtl-dark .blog-card-meta { color: var(--mtl-muted); }
body.mtl-dark .blog-article-header h1 { color: var(--mtl-white); }
body.mtl-dark .blog-article-meta { color: var(--mtl-muted); }
body.mtl-dark .blog-article-content {
  color: rgba(200, 220, 240, 0.88);
  line-height: 1.85;
}
body.mtl-dark .blog-article-content h1,
body.mtl-dark .blog-article-content h2,
body.mtl-dark .blog-article-content h3,
body.mtl-dark .blog-article-content h4 { color: var(--mtl-white); }
body.mtl-dark .blog-article-content a { color: var(--mtl-cyan); }
body.mtl-dark .blog-article-content a:hover { color: var(--mtl-green); }
body.mtl-dark .blog-article-content strong { color: var(--mtl-white); }
body.mtl-dark .blog-article-content blockquote {
  border-left: 3px solid var(--mtl-cyan);
  padding-left: 1.2rem;
  color: var(--mtl-muted);
  font-style: italic;
  margin: 1.5rem 0;
}
body.mtl-dark .blog-article-footer {
  border-top-color: var(--mtl-border);
  color: var(--mtl-muted);
}
body.mtl-dark .card {
  background: var(--mtl-panel);
  border: 1px solid var(--mtl-border);
  color: var(--mtl-white);
}
body.mtl-dark .card h3,
body.mtl-dark .blog-sidebar h3 { color: var(--mtl-white); }
body.mtl-dark .card p { color: var(--mtl-muted); }
body.mtl-dark .tag {
  background: rgba(0,207,255,.07);
  border-color: rgba(0,207,255,.18);
  color: var(--mtl-muted);
}
body.mtl-dark .tag:hover,
body.mtl-dark .tag--active {
  background: var(--mtl-cyan);
  border-color: var(--mtl-cyan);
  color: #020B18;
}
body.mtl-dark code {
  background: rgba(0,207,255,.09);
  color: var(--mtl-cyan);
  border-radius: 4px;
}
body.mtl-dark .page-hero h1 { color: var(--mtl-white); }
body.mtl-dark .page-hero p { color: var(--mtl-muted); }

/* ── Footer ─────────────────────────────────────────────────── */
body.mtl-dark .footer {
  background: rgba(2, 8, 20, 0.9);
  border-top: 1px solid var(--mtl-border);
  padding: 3.5rem 0 2rem;
}
body.mtl-dark .footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
body.mtl-dark .footer-brand p { color: var(--mtl-muted); font-size: .875rem; margin-top: .75rem; max-width: 260px; line-height: 1.6; }
body.mtl-dark .brand-text { color: var(--mtl-white); }
body.mtl-dark .footer-links { display: flex; gap: 3rem; }
body.mtl-dark .footer-links h4 { color: var(--mtl-white); font-size: .85rem; font-weight: 700; margin-bottom: .85rem; text-transform: uppercase; letter-spacing: .07em; }
body.mtl-dark .footer-links a { display: block; color: var(--mtl-muted); font-size: .875rem; text-decoration: none; margin-bottom: .55rem; transition: color .18s; }
body.mtl-dark .footer-links a:hover { color: var(--mtl-white); }
body.mtl-dark .footer-bottom { border-top: 1px solid var(--mtl-border); padding-top: 1.5rem; margin-top: 2.5rem; }
body.mtl-dark .footer-bottom p { color: var(--mtl-muted); font-size: .8rem; text-align: center; }
body.mtl-dark .footer-brand img { height: 68px; width: auto; margin-bottom: .5rem; }

/* ── Auth pages (login/register) ────────────────────────────── */
body.mtl-dark .auth-card {
  border: 1px solid var(--mtl-border);
  background: var(--mtl-panel-strong);
  backdrop-filter: blur(24px);
  border-radius: var(--mtl-radius);
  padding: 2.5rem;
  box-shadow: var(--mtl-shadow);
}
body.mtl-dark .form-group label { color: var(--mtl-muted); font-size: .875rem; }
body.mtl-dark .form-control {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--mtl-border);
  color: var(--mtl-white);
  border-radius: 10px;
}
body.mtl-dark .form-control:focus {
  background: rgba(255,255,255,.09);
  border-color: rgba(0,207,255,.4);
  box-shadow: 0 0 0 3px rgba(0,207,255,.12);
  outline: none;
  color: var(--mtl-white);
}
body.mtl-dark .form-control::placeholder { color: rgba(159,180,200,.5); }

/* ── Cursor Ambient Effects ─────────────────────────────────── */
/* OS cursor is kept. Only the glow halo, sparks, and ripple are active. */

/* Fixed overflow-hidden layer containing all cursor effects — prevents
   adding/removing children from affecting the document scroll extent. */
#mtl-effects-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 9996;
}

.mtl-smart-cursor-glow {
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0,207,255,.10), rgba(140,255,0,.04) 42%, transparent 70%);
  opacity: .3;
  mix-blend-mode: screen;
  margin: -19px 0 0 -19px;
  will-change: transform;
}
.mtl-cursor-spark {
  position: absolute;
  width: 3px; height: 3px;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.92), rgba(0,207,255,.58), transparent 72%);
  box-shadow: 0 0 6px rgba(0,207,255,.22);
  animation: mtlSmartSpark .56s ease-out forwards;
}
.mtl-smart-click-ripple {
  position: absolute;
  width: 7px; height: 7px;
  pointer-events: none;
  border-radius: 999px;
  border: 1px solid rgba(0,207,255,.56);
  box-shadow: 0 0 14px rgba(0,207,255,.22);
  transform: translate(-50%, -50%);
  animation: mtlSmartRipple .65s ease-out forwards;
}
@keyframes mtlSmartSpark {
  to { transform: translate(var(--spark-x), -12px) scale(.2); opacity: 0; }
}
@keyframes mtlSmartRipple {
  to { transform: translate(-50%, -50%) scale(6.2); opacity: 0; }
}

/* ── Scroll reveal ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  body.mtl-dark .features-grid { grid-template-columns: repeat(2, 1fr); }
  body.mtl-dark .pricing-grid,
  body.mtl-dark .pricing-grid--full { grid-template-columns: repeat(3, 1fr); }
  body.mtl-dark .included-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  body.mtl-dark .hero-inner { grid-template-columns: 1fr; }
  body.mtl-dark .hero-visual { display: none; }
  body.mtl-dark .steps { grid-template-columns: 1fr; }
  body.mtl-dark .feature-detail { grid-template-columns: 1fr; }
  body.mtl-dark .feature-detail--reverse { direction: ltr; }
  body.mtl-dark .navbar { width: calc(100% - 24px); }
}

@media (max-width: 640px) {
  body.mtl-dark .features-grid,
  body.mtl-dark .pricing-grid,
  body.mtl-dark .pricing-grid--full { grid-template-columns: 1fr; }
  body.mtl-dark .included-grid { grid-template-columns: repeat(2, 1fr); }
  body.mtl-dark .footer-inner { flex-direction: column; }
  body.mtl-dark .footer-links { flex-wrap: wrap; gap: 2rem; }
}

/* ── Auth pages dark ────────────────────────────────────────── */
body.mtl-dark .auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 2rem;
  padding-top: 5rem;
}
body.mtl-dark .auth-card {
  background: var(--mtl-panel-strong);
  border: 1px solid var(--mtl-border);
  border-radius: var(--mtl-radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 0 60px rgba(0,207,255,.08), var(--mtl-shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
body.mtl-dark .auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  text-decoration: none;
}
body.mtl-dark .auth-card h1 { font-size: 1.45rem; margin-bottom: .25rem; text-align: center; }
body.mtl-dark .auth-subtitle { color: var(--mtl-muted); font-size: .875rem; margin-bottom: 1.75rem; text-align: center; }
body.mtl-dark .auth-footer { color: var(--mtl-muted); font-size: .875rem; text-align: center; margin-top: 1.25rem; }
body.mtl-dark .auth-footer a { color: var(--mtl-cyan); text-decoration: none; }
body.mtl-dark .auth-footer a:hover { text-decoration: underline; }
body.mtl-dark .form-group { margin-bottom: 1.1rem; }
body.mtl-dark .form-group label { display: block; color: var(--mtl-muted); font-size: .82rem; margin-bottom: .4rem; font-weight: 500; }

/* Auth "remember me" checkbox */
body.mtl-dark .auth-remember {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
  cursor: pointer;
  user-select: none;
}
body.mtl-dark .auth-remember input { position: absolute; opacity: 0; width: 0; height: 0; }
body.mtl-dark .auth-remember .auth-check-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid var(--mtl-border);
  background: var(--mtl-panel);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
body.mtl-dark .auth-remember .auth-check-box::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--mtl-cyan);
  transform: scale(0);
  transition: transform .15s;
}
body.mtl-dark .auth-remember input:checked ~ .auth-check-box {
  border-color: var(--mtl-cyan);
  background: rgba(0,207,255,.12);
}
body.mtl-dark .auth-remember input:checked ~ .auth-check-box::after { transform: scale(1); }
body.mtl-dark .auth-remember input:focus-visible ~ .auth-check-box {
  box-shadow: 0 0 0 3px rgba(0,207,255,.25);
}
body.mtl-dark .auth-remember .auth-check-label { color: var(--mtl-muted); font-size: .85rem; }
body.mtl-dark .form-label-link { float: right; color: var(--mtl-cyan); font-size: .8rem; font-weight: 400; }
body.mtl-dark .form-control {
  display: block;
  width: 100%;
  padding: .65rem .9rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: var(--mtl-white);
  font-size: .875rem;
  font-family: inherit;
  transition: border-color .18s, box-shadow .18s;
}
body.mtl-dark .form-control:focus {
  background: rgba(255,255,255,.09);
  border-color: rgba(0,207,255,.46);
  box-shadow: 0 0 0 3px rgba(0,207,255,.12);
  outline: none;
  color: var(--mtl-white);
}
body.mtl-dark .form-control::placeholder { color: rgba(159,180,200,.45); }
body.mtl-dark .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
body.mtl-dark .form-error { color: #f87171; font-size: .78rem; margin-top: .3rem; }
body.mtl-dark .form-legal { color: var(--mtl-muted); font-size: .78rem; text-align: center; margin-top: 1rem; }
body.mtl-dark .form-legal a { color: var(--mtl-cyan); }
body.mtl-dark .alert-error {
  background: rgba(220,38,38,.12);
  border: 1px solid rgba(220,38,38,.3);
  color: #fca5a5;
  border-radius: 10px;
  padding: .7rem 1rem;
  font-size: .875rem;
  margin-bottom: 1.1rem;
}

/* ── Competitive comparison banner ─────────────────────────── */
body.mtl-dark .comp-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  background: var(--mtl-panel);
  border: 1px solid var(--mtl-border);
  border-radius: 28px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--mtl-shadow);
}
body.mtl-dark .comp-price-side,
body.mtl-dark .comp-security-side {
  padding: 2.5rem 2.25rem;
}
body.mtl-dark .comp-divider {
  width: 1px;
  background: var(--mtl-border);
  align-self: stretch;
}
body.mtl-dark .comp-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--mtl-muted);
  margin-bottom: 1.5rem;
}
body.mtl-dark .comp-bars {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
body.mtl-dark .comp-bar-row {
  display: flex;
  align-items: center;
  gap: .85rem;
}
body.mtl-dark .comp-bar-label {
  font-size: .76rem;
  color: var(--mtl-muted);
  width: 100px;
  flex-shrink: 0;
  text-align: right;
}
body.mtl-dark .comp-bar {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--mtl-border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
body.mtl-dark .comp-bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  border-radius: 10px;
}
body.mtl-dark .comp-bar--them .comp-bar-fill {
  width: 100%;
  background: rgba(255,255,255,.12);
}
body.mtl-dark .comp-bar--us .comp-bar-fill {
  width: 18.75%;
  background: linear-gradient(90deg, rgba(0,207,255,.7), rgba(140,255,0,.55));
  box-shadow: 0 0 18px rgba(0,207,255,.35);
}
body.mtl-dark .comp-bar-value {
  position: relative;
  z-index: 1;
  font-size: .82rem;
  font-weight: 700;
  padding-left: .75rem;
  color: var(--mtl-white);
}
body.mtl-dark .comp-bar--them .comp-bar-value { color: var(--mtl-muted); }
body.mtl-dark .comp-saving-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(140,255,0,.12);
  border: 1px solid rgba(140,255,0,.28);
  color: var(--mtl-green);
  font-size: .78rem;
  font-weight: 700;
  padding: .35rem .9rem;
  border-radius: 999px;
}
body.mtl-dark .comp-saving-badge::before {
  content: "↓";
  font-size: .9rem;
}
body.mtl-dark .comp-sec-icon {
  font-size: 2.2rem;
  margin-bottom: .85rem;
  filter: drop-shadow(0 0 10px rgba(0,207,255,.4));
  line-height: 1;
}
body.mtl-dark .comp-sec-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mtl-white);
  margin-bottom: .75rem;
  line-height: 1.35;
}
body.mtl-dark .comp-sec-body {
  font-size: .875rem;
  color: var(--mtl-muted);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}
body.mtl-dark .comp-sec-body strong { color: var(--mtl-white); }
body.mtl-dark .comp-sec-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
body.mtl-dark .comp-sec-checks li {
  font-size: .82rem;
  color: var(--mtl-muted);
  padding-left: 1.4rem;
  position: relative;
}
body.mtl-dark .comp-sec-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mtl-cyan);
  font-weight: 700;
}
@media (max-width: 720px) {
  body.mtl-dark .comp-banner {
    grid-template-columns: 1fr;
  }
  body.mtl-dark .comp-divider {
    width: auto;
    height: 1px;
  }
}

/* ── Competitive pills (home pricing section) ────────────────── */
body.mtl-dark .comp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-bottom: 2rem;
}
body.mtl-dark .comp-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 600;
  padding: .35rem .9rem;
  border-radius: 999px;
  letter-spacing: .02em;
}
body.mtl-dark .comp-pill--price {
  background: rgba(140,255,0,.10);
  border: 1px solid rgba(140,255,0,.25);
  color: var(--mtl-green);
}
body.mtl-dark .comp-pill--security {
  background: rgba(0,207,255,.10);
  border: 1px solid rgba(0,207,255,.22);
  color: var(--mtl-cyan);
}

/* ── Newsletter modal ───────────────────────────────────────── */
.nl-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(2, 8, 20, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.nl-backdrop.nl-open {
  opacity: 1;
  pointer-events: all;
}
.nl-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: rgba(5, 18, 38, 0.96);
  border: 1px solid rgba(0, 207, 255, 0.22);
  border-radius: 28px;
  padding: 2.75rem 2.5rem 2.25rem;
  box-shadow: 0 0 80px rgba(0, 207, 255, 0.14), 0 32px 80px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  text-align: center;
  transform: translateY(18px) scale(.97);
  transition: transform .32s cubic-bezier(.22,1,.36,1);
}
.nl-backdrop.nl-open .nl-modal {
  transform: translateY(0) scale(1);
}
.nl-close {
  position: absolute;
  top: 1rem; right: 1.1rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: #9FB4C8;
  border-radius: 50%;
  width: 30px; height: 30px;
  font-size: .75rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .18s, color .18s;
}
.nl-close:hover { background: rgba(0,207,255,.15); color: #F4FBFF; }

.nl-icon { font-size: 2.6rem; line-height: 1; margin-bottom: .85rem; }
.nl-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #F4FBFF;
  margin: 0 0 .6rem;
}
.nl-sub {
  color: #9FB4C8;
  font-size: .9rem;
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

.nl-input-row {
  display: flex;
  gap: .5rem;
}
.nl-input {
  flex: 1;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: .7rem 1rem;
  color: #F4FBFF;
  font-size: .9rem;
  font-family: inherit;
  transition: border-color .18s, box-shadow .18s;
  outline: none;
}
.nl-input:focus {
  border-color: rgba(0,207,255,.5);
  box-shadow: 0 0 0 3px rgba(0,207,255,.12);
}
.nl-input::placeholder { color: rgba(159,180,200,.45); }
.nl-submit {
  background: linear-gradient(135deg, rgba(0,207,255,.28), rgba(140,255,0,.16));
  border: 1px solid rgba(0,207,255,.45);
  border-radius: 12px;
  color: #F4FBFF;
  font-size: .9rem;
  font-weight: 700;
  padding: .7rem 1.3rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, box-shadow .2s, border-color .2s;
}
.nl-submit:hover {
  background: linear-gradient(135deg, rgba(0,207,255,.42), rgba(140,255,0,.26));
  border-color: rgba(0,207,255,.7);
  box-shadow: 0 0 22px rgba(0,207,255,.28);
}
.nl-submit:disabled { opacity: .6; cursor: not-allowed; }

.nl-error {
  color: #fca5a5;
  font-size: .8rem;
  margin: .6rem 0 0;
  text-align: left;
}

.nl-success { padding: .5rem 0; }
.nl-success-icon { font-size: 2.4rem; margin-bottom: .75rem; }
.nl-success p {
  color: #9FB4C8;
  font-size: .95rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .mtl-smart-cursor, .mtl-cursor-spark, .mtl-smart-click-ripple { display: none !important; }
}

/* ══════════════════════════════════════════════════════════════
   MetaToolsLab — Dashboard Dark Theme
   Applied when <body class="dashboard-body"> is present.
   ══════════════════════════════════════════════════════════════ */

body.dashboard-body {
  --mtl-bg:            #020B18;
  --mtl-panel-solid:   #071525;
  --mtl-panel-strong:  #0A1C30;
  --mtl-sidebar:       #030e1e;
  --mtl-cyan:          #00CFFF;
  --mtl-green:         #8CFF00;
  --mtl-white:         #F4FBFF;
  --mtl-muted:         #9FB4C8;
  --mtl-border:        rgba(255, 255, 255, 0.09);
  --mtl-shadow:        0 4px 24px rgba(0, 0, 0, 0.36);
  --mtl-radius:        16px;
  --dash-nav-h:        96px;

  background: var(--mtl-bg);
  color: var(--mtl-white);
}

/* ── Global code tag override (dark theme) ──────────────────── */
body.dashboard-body code {
  background: rgba(0, 207, 255, 0.08);
  border: 1px solid rgba(0, 207, 255, 0.18);
  border-radius: 5px;
  padding: .12em .4em;
  font-size: .85em;
  color: var(--mtl-cyan);
  font-family: 'Roboto Mono', 'Menlo', 'Consolas', monospace;
}

/* ── Navbar (full-width, no pill) ───────────────────────────── */
body.dashboard-body .navbar {
  width: 100%;
  margin: 0;
  top: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--mtl-border);
  border-left: none;
  border-right: none;
  border-top: none;
  background: rgba(3, 10, 22, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.05);
}
body.dashboard-body .navbar .container {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 1.25rem;
}
body.dashboard-body .navbar-inner {
  height: var(--dash-nav-h);
  padding: 0;
}
body.dashboard-body .navbar-brand {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-right: 1px solid var(--mtl-border);
  padding: .25rem 0;
}
body.dashboard-body .navbar-brand img { height: 82px; }
body.dashboard-body .navbar-brand .brand-text { display: none; }
body.dashboard-body .navbar-menu a { color: var(--mtl-muted); }
body.dashboard-body .navbar-menu a:hover { color: var(--mtl-white); }
body.dashboard-body .brand-text { color: var(--mtl-white); }
body.dashboard-body .brand-text strong { color: var(--mtl-cyan); }

/* ── Layout ─────────────────────────────────────────────────── */
body.dashboard-body .dashboard-body { background: var(--mtl-bg); }
body.dashboard-body .dashboard-main  { background: transparent; }
body.dashboard-body .page-header h1  { color: var(--mtl-white); }

/* ── Sidebar ────────────────────────────────────────────────── */
body.dashboard-body .sidebar {
  background: var(--mtl-sidebar);
  border-right: 1px solid var(--mtl-border);
  position: sticky;
  top: var(--dash-nav-h);
  height: calc(100vh - var(--dash-nav-h));
  overflow-y: auto;
}
body.dashboard-body .sidebar-link { color: var(--mtl-muted); }
body.dashboard-body .sidebar-link:hover,
body.dashboard-body .sidebar-link.active {
  background: rgba(0,207,255,.08);
  color: var(--mtl-white);
}
body.dashboard-body .sidebar-link.active { border-left: 2px solid var(--mtl-cyan); }
body.dashboard-body .sidebar-link--danger:hover { background: rgba(220,38,38,.1); color: #fca5a5; }
body.dashboard-body .sidebar-footer { border-top: 1px solid var(--mtl-border); }
body.dashboard-body .sidebar-plan   { color: var(--mtl-muted); }
body.dashboard-body .plan-badge     { background: rgba(0,207,255,.15); color: var(--mtl-cyan); border: none; }

/* ── Cards ──────────────────────────────────────────────────── */
body.dashboard-body .card {
  background: var(--mtl-panel-solid);
  border: 1px solid var(--mtl-border);
  border-radius: var(--mtl-radius);
  color: var(--mtl-white);
}
body.dashboard-body .card-header {
  border-bottom: 1px solid var(--mtl-border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}
body.dashboard-body .card h2, body.dashboard-body .card h3 { color: var(--mtl-white); }
body.dashboard-body .card p { color: var(--mtl-muted); }
body.dashboard-body .card--empty { border-style: dashed; }
body.dashboard-body .empty-icon { color: var(--mtl-muted); opacity: .45; }

/* ── Stat cards ─────────────────────────────────────────────── */
body.dashboard-body .stat-card {
  background: var(--mtl-panel-solid);
  border: 1px solid var(--mtl-border);
  border-radius: var(--mtl-radius);
  padding: 1.75rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .35rem;
  position: relative;
  overflow: hidden;
  transition: border-color .22s, box-shadow .22s, transform .22s;
}
body.dashboard-body .stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,207,255,.55), rgba(140,255,0,.35), transparent);
  border-radius: 0 0 4px 4px;
}
body.dashboard-body .stat-card:hover {
  border-color: rgba(0,207,255,.24);
  box-shadow: 0 0 28px rgba(0,207,255,.09);
  transform: translateY(-2px);
}
body.dashboard-body .stat-value {
  color: var(--mtl-white);
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #F4FBFF 30%, var(--mtl-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  word-break: break-word;
}
body.dashboard-body .stat-label {
  color: var(--mtl-muted);
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: .1rem;
}
body.dashboard-body .stat-link {
  color: var(--mtl-cyan);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: .6rem;
  opacity: .75;
  transition: opacity .18s, color .18s;
}
body.dashboard-body .stat-link:hover { color: var(--mtl-green); opacity: 1; }

/* ── Tables ─────────────────────────────────────────────────── */
body.dashboard-body .table th    { color: var(--mtl-muted); border-bottom: 1px solid var(--mtl-border); background: transparent; }
body.dashboard-body .table td    { border-bottom: 1px solid var(--mtl-border); color: var(--mtl-white); }
body.dashboard-body .table tbody tr:last-child td { border-bottom: none; }
body.dashboard-body .table tbody tr:hover td { background: rgba(0,207,255,.04); }
body.dashboard-body .table a { color: var(--mtl-cyan); text-decoration: none; }
body.dashboard-body .table a:hover { color: var(--mtl-green); }

/* ── Status Badges ──────────────────────────────────────────── */
body.dashboard-body .badge-success,
body.dashboard-body .badge-active   { background: rgba(140,255,0,.12);  color: #8CFF00;  border: 1px solid rgba(140,255,0,.22); }
body.dashboard-body .badge-danger,
body.dashboard-body .badge-canceled,
body.dashboard-body .badge-failed   { background: rgba(220,38,38,.12);  color: #fca5a5;  border: 1px solid rgba(220,38,38,.24); }
body.dashboard-body .badge-warning,
body.dashboard-body .badge-past_due { background: rgba(251,191,36,.10); color: #fde68a;  border: 1px solid rgba(251,191,36,.22); }
body.dashboard-body .badge-muted,
body.dashboard-body .badge-pending  { background: rgba(255,255,255,.07); color: var(--mtl-muted); border: 1px solid var(--mtl-border); }
body.dashboard-body .badge-info,
body.dashboard-body .badge-open,
body.dashboard-body .badge-trialing { background: rgba(0,207,255,.12);  color: var(--mtl-cyan);  border: 1px solid rgba(0,207,255,.24); }
body.dashboard-body .badge-partial-close { background: rgba(251,146,60,.10); color: #fdba74; border: 1px solid rgba(251,146,60,.22); }
body.dashboard-body .badge-modify   { background: rgba(253,224,71,.08);  color: #fde047; border: 1px solid rgba(253,224,71,.16); }
body.dashboard-body .badge-close    { background: rgba(220,38,38,.10);   color: #fca5a5; border: 1px solid rgba(220,38,38,.2); }

/* ── Copy-status badges ─────────────────────────────────────── */
body.dashboard-body .cs-ok      { background: rgba(140,255,0,.12);  color: #8CFF00;           border: 1px solid rgba(140,255,0,.24); }
body.dashboard-body .cs-fail    { background: rgba(220,38,38,.12);  color: #fca5a5;           border: 1px solid rgba(220,38,38,.24); }
body.dashboard-body .cs-running { background: rgba(0,207,255,.12);  color: var(--mtl-cyan);   border: 1px solid rgba(0,207,255,.24); }
body.dashboard-body .cs-missed  { background: rgba(251,146,60,.10); color: #fdba74;           border: 1px solid rgba(251,146,60,.22); }
body.dashboard-body .cs-skipped { background: rgba(255,255,255,.07); color: var(--mtl-muted); border: 1px solid var(--mtl-border); }
body.dashboard-body .cs-warning { background: rgba(251,191,36,.10); color: #fde68a;           border: 1px solid rgba(251,191,36,.22); }
body.dashboard-body .cs-accum   { background: rgba(0,207,255,.07);  color: var(--mtl-muted);  border: 1px solid rgba(0,207,255,.14); }

/* ── Copy summary / detail ──────────────────────────────────── */
body.dashboard-body .copy-detail {
  border: 1px solid var(--mtl-border);
  border-radius: 10px;
  background: rgba(0,0,0,.2);
  margin-top: .5rem;
  overflow: hidden;
}
body.dashboard-body .copy-detail-table td  { border-top-color: var(--mtl-border); color: var(--mtl-muted); }
body.dashboard-body .legend-card {
  background: rgba(0,207,255,.04);
  border: 1px solid rgba(0,207,255,.12);
  border-radius: 10px;
  padding: .85rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
body.dashboard-body .legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  align-items: center;
  color: var(--mtl-muted);
}
body.dashboard-body .legend-item {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  color: var(--color-muted);
  white-space: nowrap;
}
body.dashboard-body .legend-sub {
  font-size: .75rem;
  color: var(--mtl-muted);
  opacity: .75;
}
body.dashboard-body .legend-hint {
  font-size: .75rem;
  color: var(--mtl-muted);
  opacity: .7;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

/* ── Account cards ──────────────────────────────────────────── */
body.dashboard-body .account-card {
  background: var(--mtl-panel-solid);
  border: 1px solid var(--mtl-border);
  border-radius: var(--mtl-radius);
  transition: border-color .2s, box-shadow .2s;
}
body.dashboard-body .account-card:hover {
  border-color: rgba(0,207,255,.18);
  box-shadow: 0 0 24px rgba(0,207,255,.06);
}
body.dashboard-body .account-card-header {
  border-bottom: 1px solid var(--mtl-border);
  background: rgba(0,0,0,.15);
}
body.dashboard-body .account-card-header h3 { color: var(--mtl-white); }
body.dashboard-body .account-card-body      { color: var(--mtl-muted); }
body.dashboard-body .account-card-section   { border-top: 1px solid var(--mtl-border); }

/* ── API keys ───────────────────────────────────────────────── */
body.dashboard-body .api-key-row label    { color: var(--mtl-muted); }

/* ── Slave cards ────────────────────────────────────────────── */
body.dashboard-body .slave-config-row {
  border-top: 1px solid var(--mtl-border);
  padding-top: .85rem;
  margin-top: .85rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: .875rem;
  color: var(--mtl-muted);
}
body.dashboard-body .slave-config-row strong { color: var(--mtl-white); }

body.dashboard-body .slave-stats-row {
  border-top: 1px solid var(--mtl-border);
  padding-top: .85rem;
  margin-top: .85rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
body.dashboard-body .slave-stat {
  background: rgba(0,207,255,.06);
  border: 1px solid rgba(0,207,255,.12);
  border-radius: 10px;
  padding: .6rem 1rem;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
body.dashboard-body .slave-stat-value  { color: var(--mtl-white); font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
body.dashboard-body .slave-stat-label  { color: var(--mtl-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; margin-top: .15rem; }

/* ── Toggle switch ──────────────────────────────────────────── */
body.dashboard-body .mtl-toggle {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  cursor: pointer;
  user-select: none;
}
body.dashboard-body .mtl-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
body.dashboard-body .mtl-toggle-track {
  position: relative;
  width: 40px;
  height: 22px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
}
body.dashboard-body .mtl-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: rgba(159,180,200,.6);
  border-radius: 50%;
  transition: transform .2s, background .2s;
}
body.dashboard-body .mtl-toggle input:checked ~ .mtl-toggle-track {
  background: rgba(0,207,255,.2);
  border-color: rgba(0,207,255,.5);
}
body.dashboard-body .mtl-toggle input:checked ~ .mtl-toggle-track .mtl-toggle-thumb {
  transform: translateX(18px);
  background: var(--mtl-cyan);
}
body.dashboard-body .mtl-toggle-label {
  color: var(--mtl-muted);
  font-size: .875rem;
  font-weight: 400;
}
body.dashboard-body .mtl-toggle:hover .mtl-toggle-track {
  border-color: rgba(0,207,255,.3);
}

/* Inline edit panel */
body.dashboard-body .account-card-section {
  border-top: 1px solid var(--mtl-border);
  padding: 1.25rem 1.5rem;
}
body.dashboard-body .account-card-section h4 {
  color: var(--mtl-white);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
body.dashboard-body .form-group--checkbox label { color: var(--mtl-muted); }
body.dashboard-body .form-group--checkbox input[type="checkbox"] { accent-color: var(--mtl-cyan); }

/* ── Symbol mapping ─────────────────────────────────────────── */
body.dashboard-body .symbol-map-section { border-top: 1px solid var(--mtl-border); }
body.dashboard-body .symbol-map-toggle {
  background: rgba(0,207,255,.05);
  border: none;
  padding: .85rem 1.5rem;
  color: var(--mtl-cyan);
  cursor: pointer;
}
body.dashboard-body .symbol-map-toggle:hover { background: rgba(0,207,255,.1); }
body.dashboard-body .symbol-map-toggle-title { color: var(--mtl-white); }
body.dashboard-body .symbol-map-toggle .caret { color: var(--mtl-cyan); }
body.dashboard-body .symbol-map-help {
  font-size: .78rem;
  color: var(--mtl-cyan);
  background: rgba(0,207,255,.08);
  border: 1px solid rgba(0,207,255,.2);
  border-radius: 6px;
  padding: .25rem .65rem;
  text-decoration: none;
}
body.dashboard-body .symbol-map-help:hover { background: rgba(0,207,255,.15); }

body.dashboard-body .symbol-map-body { padding: .5rem 1.5rem 1.5rem; }
body.dashboard-body .symbol-map-intro { color: var(--mtl-muted); }
body.dashboard-body .symbol-map-intro code,
body.dashboard-body .symbol-map-table code {
  background: rgba(0,207,255,.09);
  color: var(--mtl-cyan);
  border-radius: 4px;
  padding: .1rem .35rem;
  font-size: .82em;
}
body.dashboard-body .symbol-map-table th {
  color: var(--mtl-muted);
  background: transparent;
  border-color: var(--mtl-border);
}
body.dashboard-body .symbol-map-table td {
  color: var(--mtl-muted);
  border-color: var(--mtl-border);
}
body.dashboard-body .symbol-map-table td.arrow { color: var(--mtl-muted); opacity: .5; }
body.dashboard-body .symbol-map-form .arrow { color: var(--mtl-muted); opacity: .5; }
body.dashboard-body .symbol-map-form {
  background: rgba(0,207,255,.04);
  border: 1px solid rgba(0,207,255,.12);
  border-radius: 10px;
}
body.dashboard-body .symbol-map-form input {
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  color: var(--mtl-white) !important;
  border-radius: 8px;
}
body.dashboard-body .symbol-map-form input:focus {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(0,207,255,.4) !important;
  outline: none;
}
body.dashboard-body .symbol-map-form input::placeholder { color: rgba(159,180,200,.4); }

/* Spec advisories / inline alerts */
body.dashboard-body .spec-advisories { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; }
body.dashboard-body .alert--permanent {
  background: rgba(0,207,255,.06);
  border: 1px solid rgba(0,207,255,.18);
  border-radius: 8px;
  color: var(--mtl-muted);
  font-size: .82rem;
}
body.dashboard-body .alert--permanent.alert-warning {
  background: rgba(255,193,7,.06);
  border-color: rgba(255,193,7,.22);
  color: rgba(255,220,100,.9);
}
body.dashboard-body .alert--permanent strong { color: var(--mtl-white); }

/* ── Downloads ──────────────────────────────────────────────── */
body.dashboard-body .download-card {
  background: var(--mtl-panel-solid);
  border: 1px solid var(--mtl-border);
  border-radius: var(--mtl-radius);
  transition: border-color .2s, box-shadow .2s;
}
body.dashboard-body .download-card:hover {
  border-color: rgba(0,207,255,.22);
  box-shadow: 0 0 28px rgba(0,207,255,.08);
}
body.dashboard-body .download-card h3  { color: var(--mtl-white); }
body.dashboard-body .download-card p   { color: var(--mtl-muted); }
body.dashboard-body .download-steps    { color: var(--mtl-muted); }

/* ── Buttons ────────────────────────────────────────────────── */
body.dashboard-body .btn-primary {
  background: linear-gradient(135deg, rgba(0,207,255,.2), rgba(140,255,0,.10));
  border: 1px solid rgba(0,207,255,.38);
  color: var(--mtl-white);
}
body.dashboard-body .btn-primary:hover {
  background: linear-gradient(135deg, rgba(0,207,255,.34), rgba(140,255,0,.18));
  border-color: rgba(0,207,255,.62);
  box-shadow: 0 0 18px rgba(0,207,255,.22);
  color: var(--mtl-white);
}
body.dashboard-body .btn-outline {
  background: transparent;
  border: 1px solid rgba(0,207,255,.28);
  color: var(--mtl-cyan);
}
body.dashboard-body .btn-outline:hover {
  background: rgba(0,207,255,.09);
  border-color: rgba(0,207,255,.5);
  color: var(--mtl-white);
}
body.dashboard-body .btn-danger {
  background: rgba(220,38,38,.14);
  border: 1px solid rgba(220,38,38,.3);
  color: #fca5a5;
}
body.dashboard-body .btn-danger:hover {
  background: rgba(220,38,38,.28);
  border-color: rgba(220,38,38,.55);
  color: #fff;
}

/* ── Forms ──────────────────────────────────────────────────── */
body.dashboard-body .form-control,
body.dashboard-body .form-control--sm {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.11);
  color: var(--mtl-white);
  border-radius: 10px;
}
body.dashboard-body .form-control:focus,
body.dashboard-body .form-control--sm:focus {
  background: rgba(255,255,255,.08);
  border-color: rgba(0,207,255,.4);
  box-shadow: 0 0 0 3px rgba(0,207,255,.1);
  outline: none;
  color: var(--mtl-white);
}
body.dashboard-body .form-control::placeholder,
body.dashboard-body .form-control--sm::placeholder { color: rgba(159,180,200,.4); }
body.dashboard-body select.form-control option  { background: #071525; color: var(--mtl-white); }
body.dashboard-body .form-hint {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  background: rgba(0, 207, 255, 0.07);
  border: 1px solid rgba(0, 207, 255, 0.18);
  border-radius: 12px;
  padding: .75rem 1rem;
  color: var(--mtl-muted);
  font-size: .82rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}
body.dashboard-body .form-hint strong { color: var(--mtl-white); }
body.dashboard-body .form-hint-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: .05rem;
  filter: drop-shadow(0 0 6px rgba(0, 207, 255, .4));
}
body.dashboard-body .form-group label { color: var(--mtl-muted); }
body.dashboard-body .filter-form { align-items: center; }

/* ── Alerts ─────────────────────────────────────────────────── */
body.dashboard-body .alert-error,
body.dashboard-body .alert-danger  { background: rgba(220,38,38,.12);  color: #fca5a5;          border: 1px solid rgba(220,38,38,.26); }
body.dashboard-body .alert-warning { background: rgba(251,191,36,.08); color: #fde68a;          border: 1px solid rgba(251,191,36,.2); }
body.dashboard-body .alert-info    { background: rgba(0,207,255,.08);  color: var(--mtl-cyan);  border: 1px solid rgba(0,207,255,.2); }
body.dashboard-body .alert-success { background: rgba(140,255,0,.08);  color: #8CFF00;          border: 1px solid rgba(140,255,0,.18); }

/* ── Text helpers ───────────────────────────────────────────── */
body.dashboard-body .text-muted   { color: var(--mtl-muted) !important; }
body.dashboard-body .text-danger  { color: #fca5a5 !important; }
body.dashboard-body .text-success { color: #8CFF00 !important; }
body.dashboard-body .text-warning { color: #fde68a !important; }
body.dashboard-body .link-small   { color: var(--mtl-cyan); font-size: .8rem; text-decoration: none; }
body.dashboard-body .link-small:hover { color: var(--mtl-white); text-decoration: underline; }

/* ── Spec advisories ────────────────────────────────────────── */
body.dashboard-body .spec-advisories {
  border: 1px solid rgba(251,191,36,.2);
  border-radius: 10px;
  background: rgba(251,191,36,.05);
  color: #fde68a;
}

/* ── Guide pages (setup & symbol mapping) ───────────────────── */
body.dashboard-body .guide-hero { color: var(--mtl-white); }
body.dashboard-body .guide-kicker {
  background: rgba(0,207,255,.12);
  border: 1px solid rgba(0,207,255,.22);
  color: var(--mtl-cyan);
}
body.dashboard-body .guide-hero h1 { color: var(--mtl-white); }
body.dashboard-body .guide-hero-sub { color: var(--mtl-muted); }

body.dashboard-body .guide-cards { margin: 2rem 0; }
body.dashboard-body .guide-card {
  background: var(--mtl-panel-solid);
  border: 1px solid var(--mtl-border);
  border-radius: var(--mtl-radius);
  transition: border-color .2s, box-shadow .2s;
}
body.dashboard-body .guide-card:hover {
  border-color: rgba(0,207,255,.22);
  box-shadow: 0 0 22px rgba(0,207,255,.07);
}
body.dashboard-body .guide-card h3 { color: var(--mtl-white); }
body.dashboard-body .guide-card p  { color: var(--mtl-muted); }

body.dashboard-body .guide-step-num {
  background: linear-gradient(135deg, rgba(0,207,255,.8), rgba(140,255,0,.6));
  color: #020B18;
  box-shadow: 0 0 16px rgba(0,207,255,.3);
}
body.dashboard-body .guide-step:not(:last-child)::before {
  background: linear-gradient(180deg, rgba(0,207,255,.35), rgba(140,255,0,.2));
}
body.dashboard-body .guide-step-title { color: var(--mtl-white); }
body.dashboard-body .guide-step-title .tag {
  background: rgba(0,207,255,.1);
  border: 1px solid rgba(0,207,255,.2);
  color: var(--mtl-cyan);
}
body.dashboard-body .guide-points { color: var(--mtl-muted); }
body.dashboard-body .guide-points li::marker { color: rgba(0,207,255,.5); }
body.dashboard-body .guide-points strong { color: var(--mtl-white); }
body.dashboard-body .guide-points a  { color: var(--mtl-cyan); }
body.dashboard-body .guide-points a:hover { color: var(--mtl-green); }
body.dashboard-body .guide-points code {
  background: rgba(0,207,255,.09);
  color: var(--mtl-cyan);
  border-radius: 5px;
  padding: .1rem .35rem;
}

body.dashboard-body .guide-callout {
  background: rgba(0,207,255,.06);
  border: 1px solid rgba(0,207,255,.18);
  border-radius: 14px;
  color: var(--mtl-muted);
}
body.dashboard-body .guide-callout strong { color: var(--mtl-white); }
body.dashboard-body .guide-callout code {
  background: rgba(0,207,255,.1);
  color: var(--mtl-cyan);
  border-radius: 4px;
  padding: .1rem .35rem;
}
body.dashboard-body .guide-callout a { color: var(--mtl-cyan); font-weight: 600; }
body.dashboard-body .guide-callout a:hover { color: var(--mtl-green); }
body.dashboard-body .guide-callout-emoji { filter: drop-shadow(0 0 5px rgba(0,207,255,.3)); }

body.dashboard-body .guide-section-h { color: var(--mtl-white); }

body.dashboard-body .guide-table {
  border: 1px solid var(--mtl-border);
  border-radius: 14px;
  overflow: hidden;
}
body.dashboard-body .guide-table th {
  background: rgba(0,207,255,.06);
  color: var(--mtl-muted);
  border-bottom: 1px solid var(--mtl-border);
}
body.dashboard-body .guide-table td {
  border-bottom: 1px solid var(--mtl-border);
  color: var(--mtl-muted);
}
body.dashboard-body .guide-table tr:last-child td { border-bottom: none; }
body.dashboard-body .guide-table td.arrow { color: rgba(0,207,255,.5); }
body.dashboard-body .guide-table code {
  background: rgba(0,207,255,.09);
  color: var(--mtl-cyan);
  border-radius: 4px;
  padding: .1rem .35rem;
}

body.dashboard-body .guide-faq-title { color: var(--mtl-white); }
body.dashboard-body .guide-faq .faq-item {
  background: var(--mtl-panel-solid);
  border: 1px solid var(--mtl-border);
  border-radius: 12px;
  transition: border-color .2s;
}
body.dashboard-body .guide-faq .faq-item:hover { border-color: rgba(0,207,255,.2); }
body.dashboard-body .guide-faq .faq-item b    { color: var(--mtl-white); }
body.dashboard-body .guide-faq .faq-item span { color: var(--mtl-muted); }
body.dashboard-body .guide-faq .faq-item code {
  background: rgba(0,207,255,.09);
  color: var(--mtl-cyan);
  border-radius: 4px;
  padding: .1rem .3rem;
}

/* ── EA Key display ─────────────────────────────────────────── */
body.dashboard-body code.api-key-preview {
  cursor: pointer;
  display: inline-block;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  background: rgba(0,207,255,.07);
  color: var(--mtl-cyan);
  border: 1px solid rgba(0,207,255,.18);
  border-radius: 6px;
  padding: .15rem .5rem;
  font-size: .78rem;
  letter-spacing: .02em;
}

body.dashboard-body .api-key-row        { margin-top: .75rem; }
body.dashboard-body .api-key-row label  { font-size: .78rem; color: var(--mtl-muted); margin-bottom: .35rem; display: block; }
body.dashboard-body .api-key-display {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(0,207,255,.05);
  border: 1px solid rgba(0,207,255,.15);
  border-radius: 8px;
  padding: .45rem .7rem;
}
body.dashboard-body .api-key-display code {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--mtl-cyan);
  font-size: .8rem;
  letter-spacing: .03em;
  padding: 0;
}

/* ── MTL Dialog ─────────────────────────────────────────────── */
.mtl-dialog-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(2,11,24,.75);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
.mtl-dialog-backdrop.mtl-dialog-open { display: flex; }
.mtl-dialog {
  background: #071a2e;
  border: 1px solid rgba(0,207,255,.2);
  border-radius: 16px;
  box-shadow: 0 0 60px rgba(0,207,255,.08), 0 24px 48px rgba(0,0,0,.6);
  padding: 2rem 2rem 1.5rem;
  width: 100%;
  max-width: 420px;
  margin: 1rem;
}
.mtl-dialog-title {
  color: var(--mtl-white, #e8f4ff);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 .6rem;
  letter-spacing: -.02em;
}
.mtl-dialog-msg {
  color: rgba(159,180,200,.85);
  font-size: .9rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}
.mtl-dialog-actions {
  display: flex;
  gap: .6rem;
  justify-content: flex-end;
}
.mtl-dialog-btn {
  padding: .55rem 1.2rem;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.mtl-dialog-btn--cancel {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: rgba(159,180,200,.9);
}
.mtl-dialog-btn--cancel:hover {
  background: rgba(255,255,255,.1);
}
.mtl-dialog-btn--danger {
  background: rgba(239,68,68,.15);
  border-color: rgba(239,68,68,.4);
  color: #fca5a5;
}
.mtl-dialog-btn--danger:hover {
  background: rgba(239,68,68,.25);
}
.mtl-dialog-btn--primary {
  background: rgba(0,207,255,.15);
  border-color: rgba(0,207,255,.4);
  color: var(--mtl-cyan, #00cfff);
}
.mtl-dialog-btn--primary:hover {
  background: rgba(0,207,255,.25);
}

/* ── Remove number input spinners ───────────────────────────── */
body.dashboard-body input[type="number"]::-webkit-inner-spin-button,
body.dashboard-body input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
body.dashboard-body input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* ── Scrollbar (dashboard sidebar / main area) ──────────────── */
body.dashboard-body ::-webkit-scrollbar        { width: 6px; height: 6px; }
body.dashboard-body ::-webkit-scrollbar-track  { background: transparent; }
body.dashboard-body ::-webkit-scrollbar-thumb  { background: rgba(0,207,255,.18); border-radius: 999px; }
body.dashboard-body ::-webkit-scrollbar-thumb:hover { background: rgba(0,207,255,.35); }

/* ══════════════════════════════════════════════════════════════
   Terms & Conditions page
   ══════════════════════════════════════════════════════════════ */

body.mtl-dark .terms-toc {
  background: rgba(0,207,255,.04);
  border: 1px solid rgba(0,207,255,.12);
  border-radius: 16px;
  padding: 1.5rem 2rem;
}

body.mtl-dark .terms-toc ol {
  list-style: decimal;
  counter-reset: none;
}

body.mtl-dark .terms-link {
  color: var(--mtl-cyan);
  text-decoration: none;
  opacity: .85;
  transition: opacity .15s;
}
body.mtl-dark .terms-link:hover { opacity: 1; text-decoration: underline; }

body.mtl-dark .terms-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
body.mtl-dark .terms-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

body.mtl-dark .terms-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--mtl-white);
  margin-bottom: 1rem;
  padding-top: .25rem;
}

body.mtl-dark .terms-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--mtl-cyan);
  margin: 1.75rem 0 .6rem;
  letter-spacing: .01em;
}

body.mtl-dark .terms-section p {
  color: var(--mtl-muted);
  line-height: 1.8;
  margin-bottom: .9rem;
}
body.mtl-dark .terms-section p:last-child { margin-bottom: 0; }

body.mtl-dark .terms-section ul,
body.mtl-dark .terms-section ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
  color: var(--mtl-muted);
  line-height: 1.8;
}
body.mtl-dark .terms-section li { margin-bottom: .35rem; }

body.mtl-dark .terms-section strong { color: var(--mtl-white); font-weight: 600; }

body.mtl-dark .terms-section code {
  background: rgba(0,207,255,.08);
  border: 1px solid rgba(0,207,255,.18);
  border-radius: 4px;
  padding: .1em .4em;
  font-size: .88em;
  color: var(--mtl-cyan);
  font-family: 'Roboto Mono', monospace;
}

body.mtl-dark .terms-highlight {
  background: rgba(0,207,255,.05);
  border-left: 3px solid var(--mtl-cyan);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
body.mtl-dark .terms-highlight p {
  margin-bottom: 0;
  color: rgba(244,251,255,.8);
}

/* ── Billing page ──────────────────────────────────────────── */
.billing-card { margin-bottom: 1.5rem; }

.billing-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.billing-plan-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mtl-text);
}
.billing-renews {
  font-size: .85rem;
  color: var(--mtl-muted);
  margin-left: .75rem;
}
.billing-plan-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.billing-hint { font-size: .85rem; }

.billing-pending-notice {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: .9rem 1.1rem;
  border: 1px solid rgba(251, 191, 36, .35);
  background: rgba(251, 191, 36, .06);
  border-radius: 12px;
  font-size: .875rem;
  color: var(--mtl-text);
  flex-wrap: wrap;
}
.billing-pending-notice strong { color: #fbbf24; }
.billing-pending-icon { font-size: 1.2rem; flex-shrink: 0; }

.btn-danger-outline {
  border-color: #f87171;
  color: #f87171;
}
.btn-danger-outline:hover {
  background: rgba(248,113,113,.1);
}

/* Change plan grid */
.billing-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.billing-plan-option {
  border: 1px solid var(--mtl-border);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  background: var(--mtl-panel);
  transition: border-color .2s;
}
.billing-plan-option.is-current {
  border-color: var(--mtl-cyan);
}
.billing-plan-option-name { font-weight: 700; font-size: .95rem; }
.billing-plan-option-price {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--mtl-cyan);
  letter-spacing: -.03em;
}
.billing-plan-option-price span { font-size: .75rem; font-weight: 400; color: var(--mtl-muted); }
.billing-plan-features {
  list-style: none;
  padding: 0;
  margin: .25rem 0 .75rem;
  flex: 1;
}
.billing-plan-features li {
  font-size: .8rem;
  color: var(--mtl-muted);
  padding: .2rem 0;
}
.billing-plan-features li::before { content: '✓  '; color: var(--mtl-green); }

/* Payment method */
.billing-pm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.billing-pm-brand {
  font-weight: 600;
  text-transform: capitalize;
}
.billing-card-element {
  background: var(--mtl-panel);
  border: 1px solid var(--mtl-border);
  border-radius: 10px;
  padding: .9rem 1rem;
}

/* Invoice table */
.billing-invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.billing-invoice-table th {
  text-align: left;
  color: var(--mtl-muted);
  font-weight: 600;
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--mtl-border);
}
.billing-invoice-table td {
  padding: .65rem .75rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
}
.billing-invoice-table tr:last-child td { border-bottom: none; }

/* ── Settings subscription layout ──────────────────────────── */
.settings-sub-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.settings-sub-plan {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mtl-white);
  margin: 0 0 .4rem;
}
.settings-sub-meta {
  font-size: .85rem;
  color: var(--mtl-muted);
  margin: 0;
}
.settings-sub-actions {
  flex-shrink: 0;
}
.settings-sub-hint {
  margin: .85rem 0 0;
  font-size: .82rem;
  color: var(--mtl-muted);
  line-height: 1.5;
}

/* ── Trial banners ──────────────────────────────────────────── */
.trial-banner {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: .9rem;
  line-height: 1.4;
}
.trial-banner__icon {
  flex-shrink: 0;
  font-size: 1rem;
}
.trial-banner__cta {
  margin-left: auto;
  white-space: nowrap;
  font-weight: 700;
  font-size: .85rem;
  padding: .35rem .9rem;
  border-radius: 5px;
  text-decoration: none;
  flex-shrink: 0;
}
.trial-banner--warning {
  background: rgba(0, 207, 255, .07);
  border: 1px solid rgba(0, 207, 255, .25);
  color: var(--mtl-cyan);
}
.trial-banner--warning .trial-banner__cta {
  background: rgba(0, 207, 255, .12);
  color: var(--mtl-cyan);
  border: 1px solid rgba(0, 207, 255, .3);
}
.trial-banner--urgent {
  background: rgba(234, 179, 8, .08);
  border: 1px solid rgba(234, 179, 8, .35);
  color: #f0c040;
}
.trial-banner--urgent .trial-banner__cta {
  background: rgba(234, 179, 8, .15);
  color: #f0c040;
  border: 1px solid rgba(234, 179, 8, .4);
}
.trial-banner--expired {
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .35);
  color: #f87171;
}
.trial-banner--expired .trial-banner__cta {
  background: #ef4444;
  color: #fff;
  border: none;
}
