/* =========================================================
   Konstruktor – Shared Design Tokens (CSS Custom Properties)
   All pages import this file to stay in sync.
   ========================================================= */

:root {
  /* ── Accent / Primary ── */
  --c-accent:            #00ff88;
  --c-accent-dim:        #00cc6a;
  --c-accent-glow:       rgba(0, 255, 136, 0.18);
  --c-accent-subtle:     rgba(0, 255, 136, 0.10);

  /* ── Surfaces ── */
  --c-bg:                #0b0e11;
  --c-surface:           #111417;
  --c-surface-low:       #191c1f;
  --c-surface-mid:       #1d2023;
  --c-surface-high:      #272a2e;
  --c-surface-highest:   #323538;

  /* ── Text ── */
  --c-text:              #e1e2e7;
  --c-text-muted:        #85948b;
  --c-text-dim:          #bbcac0;

  /* ── Borders ── */
  --c-border:            #272a2e;
  --c-border-accent:     rgba(0, 255, 136, 0.22);

  /* ── Semantic ── */
  --c-error:             #ffb4ab;
  --c-secondary:         #adc6ff;

  /* ── Shadows ── */
  --shadow-card:         0 2px 16px rgba(0, 0, 0, 0.45);
  --shadow-neon:         0 0 14px rgba(0, 255, 136, 0.22);
  --shadow-neon-strong:  0 0 28px rgba(0, 255, 136, 0.35);

  /* ── Layout ── */
  --header-h: 60px;

  /* ── Radii ── */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   18px;

  /* ── Motion (mirrors Framer Motion spring presets) ── */
  --ease-spring:    cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-out:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:       150ms;
  --dur-mid:        280ms;
  --dur-slow:       420ms;
}

/* ── Typography helpers ── */
.font-headline { font-family: 'Manrope', sans-serif; }
.font-body     { font-family: 'Inter', sans-serif; }

/* ── Glass panel ── */
.glass-panel {
  background: rgba(29, 32, 35, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── Neon glow ── */
.neon-glow     { box-shadow: var(--shadow-neon); }
.neon-glow-lg  { box-shadow: var(--shadow-neon-strong); }

/* ── KPI badge ── */
.kpi-badge {
  display: inline-flex; align-items: center;
  font-size: .75rem; font-weight: 700;
  padding: .2rem .55rem; border-radius: var(--r-sm);
}
.kpi-badge.up      { color: var(--c-accent);    background: var(--c-accent-subtle); }
.kpi-badge.dn      { color: var(--c-error);      background: rgba(255,180,171,.11);  }
.kpi-badge.neutral { color: var(--c-text-muted); background: rgba(133,148,139,.11);  }

/* ── Spring hover (elastic scale) ── */
.elastic-hover {
  transition: transform var(--dur-mid) var(--ease-spring);
}
.elastic-hover:hover { transform: scale(1.08); }

/* ── Card base ── */
.k-card {
  background: var(--c-surface-low);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  transition:
    border-color var(--dur-mid) var(--ease-out),
    box-shadow   var(--dur-mid) var(--ease-out),
    transform    var(--dur-mid) var(--ease-spring);
}
.k-card:hover {
  border-color: var(--c-border-accent);
  box-shadow:   var(--shadow-neon);
  transform:    translateY(-2px);
}

/* ── Entrance animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);     }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1);    }
}

[data-animate] {
  opacity: 0;
}
[data-animate].animated {
  animation-fill-mode: both;
  animation-timing-function: var(--ease-out);
}
[data-animate="fade-up"].animated    { animation: fadeUp  var(--dur-slow) var(--ease-out) both; }
[data-animate="fade-in"].animated    { animation: fadeIn  var(--dur-mid)  ease            both; }
[data-animate="scale-in"].animated   { animation: scaleIn var(--dur-slow) var(--ease-out) both; }

/* ── Page transition overlay ── */
#page-fade {
  position: fixed; inset: 0;
  background: var(--c-bg);
  opacity: 0; pointer-events: none;
  transition: opacity 300ms var(--ease-in-out);
  z-index: 9999;
}

/* ── Accent color utilities (for pages using raw CSS vars) ── */
.text-accent    { color: var(--c-accent); }
.bg-accent      { background: var(--c-accent); }
.border-accent  { border-color: var(--c-border-accent); }

/* ── gmgn-style accent button ── */
.btn-gmgn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.7rem 1rem;
  background: var(--c-accent-subtle);
  color: var(--c-accent);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--c-accent);
  border-radius: 10px;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(0, 255, 136, 0.08),
    0 0 18px var(--c-accent-glow),
    inset 0 0 12px rgba(0, 255, 136, 0.05);
  transition:
    background var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out),
    transform  var(--dur-mid) var(--ease-spring),
    color      var(--dur-mid) var(--ease-out);
}
.btn-gmgn:hover {
  background: var(--c-accent);
  color: #0b2218;
  box-shadow:
    0 0 0 1px var(--c-accent),
    0 0 28px rgba(0, 255, 136, 0.45),
    inset 0 0 16px rgba(0, 255, 136, 0.2);
  transform: translateY(-1px);
}
.btn-gmgn:active { transform: translateY(0); }
.btn-gmgn-icon {
  font-size: 1rem !important;
  transition: transform var(--dur-mid) var(--ease-spring);
}
.btn-gmgn:hover .btn-gmgn-icon { transform: translateX(3px); }

/* ── Neon button trio (primary / secondary / third) ──
   Shared shell + size; differ in fill/weight. Use:
     .btn-primary-neon   = main CTA (solid neon + glow)
     .btn-secondary-neon = ghost/outline (accent border, transparent fill)
     .btn-third-neon     = subdued ghost (muted text, subtle border) */
.btn-primary-neon,
.btn-secondary-neon,
.btn-third-neon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: var(--r-md);
  cursor: pointer;
  user-select: none;
  transition:
    background   var(--dur-mid) var(--ease-out),
    color        var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out),
    box-shadow   var(--dur-mid) var(--ease-out),
    transform    var(--dur-mid) var(--ease-spring),
    opacity      var(--dur-fast) var(--ease-out);
}
.btn-primary-neon .mat-icon,
.btn-secondary-neon .mat-icon,
.btn-third-neon .mat-icon,
.btn-primary-neon .material-symbols-outlined,
.btn-secondary-neon .material-symbols-outlined,
.btn-third-neon .material-symbols-outlined {
  font-size: 1rem !important;
  line-height: 1;
}

/* Primary — active state: solid neon green with glow */
.btn-primary-neon {
  background: var(--c-accent);
  color: #0b2218;
  border: 1px solid var(--c-accent);
  box-shadow:
    0 0 0 1px rgba(0, 255, 136, 0.18),
    0 0 22px rgba(0, 255, 136, 0.45),
    0 8px 22px -8px rgba(0, 255, 136, 0.55),
    inset 0 0 14px rgba(255, 255, 255, 0.08);
}
.btn-primary-neon:hover {
  background: #1aff95;
  box-shadow:
    0 0 0 1px var(--c-accent),
    0 0 32px rgba(0, 255, 136, 0.6),
    0 12px 28px -10px rgba(0, 255, 136, 0.65),
    inset 0 0 16px rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}
.btn-primary-neon:active { transform: translateY(0); }
.btn-primary-neon:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--c-bg),
    0 0 0 4px var(--c-accent),
    0 0 26px rgba(0, 255, 136, 0.5);
}

/* Primary — disabled: muted gray, no glow, blocked cursor */
.btn-primary-neon:disabled,
.btn-primary-neon[aria-disabled="true"],
.btn-primary-neon.is-disabled {
  background: var(--c-surface-high);
  color: var(--c-text-muted);
  border-color: var(--c-border);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}
.btn-primary-neon:disabled:hover,
.btn-primary-neon[aria-disabled="true"]:hover,
.btn-primary-neon.is-disabled:hover {
  background: var(--c-surface-high);
  box-shadow: none;
  transform: none;
}

/* Secondary — outlined ghost with accent border */
.btn-secondary-neon {
  background: var(--c-accent-subtle);
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
  box-shadow:
    0 0 0 1px rgba(0, 255, 136, 0.06),
    inset 0 0 10px rgba(0, 255, 136, 0.04);
}
.btn-secondary-neon:hover {
  background: rgba(0, 255, 136, 0.16);
  color: var(--c-accent);
  box-shadow:
    0 0 0 1px var(--c-accent),
    0 0 20px rgba(0, 255, 136, 0.3),
    inset 0 0 14px rgba(0, 255, 136, 0.08);
  transform: translateY(-1px);
}
.btn-secondary-neon:active { transform: translateY(0); }
.btn-secondary-neon:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--c-bg),
    0 0 0 4px var(--c-accent);
}
.btn-secondary-neon:disabled,
.btn-secondary-neon[aria-disabled="true"],
.btn-secondary-neon.is-disabled {
  background: transparent;
  color: var(--c-text-muted);
  border-color: var(--c-border);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

/* Third — most subdued: dim text, hairline border, no fill */
.btn-third-neon {
  background: transparent;
  color: var(--c-text-dim);
  border: 1px solid var(--c-border);
  box-shadow: none;
}
.btn-third-neon:hover {
  background: rgba(0, 255, 136, 0.05);
  color: var(--c-accent);
  border-color: var(--c-border-accent);
}
.btn-third-neon:active { transform: translateY(0); }
.btn-third-neon:focus-visible {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.25);
}
.btn-third-neon:disabled,
.btn-third-neon[aria-disabled="true"],
.btn-third-neon.is-disabled {
  color: var(--c-text-muted);
  border-color: var(--c-border);
  background: transparent;
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}
.btn-third-neon:disabled:hover,
.btn-third-neon[aria-disabled="true"]:hover,
.btn-third-neon.is-disabled:hover {
  background: transparent;
  color: var(--c-text-muted);
  border-color: var(--c-border);
}

/* ── Most Stable Strategy card ── */
.most-stable-strategy {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 110% -10%, rgba(0, 255, 136, 0.08) 0%, transparent 52%),
    linear-gradient(180deg, rgba(0, 255, 136, 0.03) 0%, rgba(11, 14, 17, 0) 45%),
    linear-gradient(180deg, #13171a 0%, #0a0d10 100%);
  border: 1px solid rgba(0, 255, 136, 0.14);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 14px 34px -18px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    border-color var(--dur-mid) var(--ease-out),
    box-shadow   var(--dur-mid) var(--ease-out),
    transform    var(--dur-mid) var(--ease-spring);
}
.most-stable-strategy::before {
  content: '';
  position: absolute;
  top: -15%; right: -10%;
  width: 65%; height: 65%;
  background: radial-gradient(circle at top right, rgba(0, 255, 136, 0.12), transparent 62%);
  pointer-events: none;
}
.most-stable-strategy::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.28) 0%,
    rgba(0, 255, 136, 0.04) 40%,
    rgba(0, 255, 136, 0.02) 70%,
    rgba(0, 255, 136, 0.14) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.most-stable-strategy > * { position: relative; z-index: 1; }
.most-stable-strategy:hover {
  border-color: var(--c-accent);
  box-shadow:
    0 0 0 1px rgba(0, 255, 136, 0.18),
    0 0 28px rgba(0, 255, 136, 0.28),
    0 22px 48px -18px rgba(0, 255, 136, 0.36);
  transform: translateY(-3px);
}

.stability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.32);
  border-radius: 999px;
  color: var(--c-accent);
  font-family: 'Manrope', sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow:
    0 0 12px rgba(0, 255, 136, 0.15),
    inset 0 0 8px rgba(0, 255, 136, 0.05);
}
.stability-badge .material-symbols-outlined {
  font-size: 0.85rem !important;
  color: var(--c-accent);
}

.strategy-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.05rem 1.15rem;
  background:
    linear-gradient(180deg, rgba(0, 255, 136, 0.025) 0%, rgba(11, 14, 17, 0) 60%),
    rgba(8, 11, 13, 0.7);
  border: 1px solid rgba(0, 255, 136, 0.08);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 1px 0 rgba(0, 0, 0, 0.35);
  transition:
    border-color var(--dur-mid) var(--ease-out),
    background   var(--dur-mid) var(--ease-out),
    box-shadow   var(--dur-mid) var(--ease-out),
    transform    var(--dur-mid) var(--ease-spring);
}
.strategy-field:hover {
  border-color: rgba(0, 255, 136, 0.32);
  background:
    linear-gradient(180deg, rgba(0, 255, 136, 0.05) 0%, rgba(11, 14, 17, 0) 70%),
    rgba(8, 11, 13, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 18px rgba(0, 255, 136, 0.10);
  transform: translateY(-1px);
}
.strategy-field-label {
  display: block;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(133, 148, 139, 0.7);
}
.strategy-field-value {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}
.strategy-field-value.accent {
  color: var(--c-accent);
  text-shadow:
    0 0 12px rgba(0, 255, 136, 0.28),
    0 0 28px rgba(0, 255, 136, 0.14);
}

/* ── Strategy rows (clean trading terminal list with dividers) ── */
.strategy-rows {
  list-style: none;
  margin: 0;
  padding: 0.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.strategy-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--dur-mid) var(--ease-out);
}
.strategy-row:last-child { border-bottom: none; }
.strategy-row:hover { background: rgba(0, 255, 136, 0.025); }
.strategy-row-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.strategy-row-value {
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}
.strategy-row-value.accent { color: var(--c-accent); }

.view-strategy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: transparent;
  color: var(--c-accent);
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 255, 136, 0.35);
  border-radius: 10px;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(0, 255, 136, 0.04),
    inset 0 0 10px rgba(0, 255, 136, 0.04);
  transition:
    background   var(--dur-mid) var(--ease-out),
    color        var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out),
    box-shadow   var(--dur-mid) var(--ease-out),
    transform    var(--dur-mid) var(--ease-spring);
}
.view-strategy-btn:hover {
  background: var(--c-accent);
  color: #0b2218;
  border-color: var(--c-accent);
  box-shadow:
    0 0 0 1px var(--c-accent),
    0 0 28px rgba(0, 255, 136, 0.5),
    0 0 52px rgba(0, 255, 136, 0.28);
  transform: translateY(-2px);
}
.view-strategy-btn:active { transform: translateY(0); }
.view-strategy-btn .material-symbols-outlined {
  font-size: 1rem !important;
  transition: transform var(--dur-mid) var(--ease-spring);
}
.view-strategy-btn:hover .material-symbols-outlined { transform: translateX(3px); }

/* ── Highest ROI Strategy card ── */
.highest-roi {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(0, 255, 136, 0.12) 0%, transparent 58%),
    linear-gradient(180deg, rgba(0, 255, 136, 0.05) 0%, rgba(11, 14, 17, 0) 45%),
    linear-gradient(180deg, #15191d 0%, #0a0d10 100%);
  border: 1px solid rgba(0, 255, 136, 0.22);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(0, 255, 136, 0.10),
    0 14px 34px -18px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    border-color var(--dur-mid) var(--ease-out),
    box-shadow   var(--dur-mid) var(--ease-out),
    transform    var(--dur-mid) var(--ease-spring);
}
.highest-roi::before {
  content: '';
  position: absolute;
  top: -10%; left: -10%;
  width: 65%; height: 65%;
  background: radial-gradient(circle at top left, rgba(0, 255, 136, 0.18), transparent 62%);
  pointer-events: none;
}
.highest-roi::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.42) 0%,
    rgba(0, 255, 136, 0.06) 40%,
    rgba(0, 255, 136, 0.02) 70%,
    rgba(0, 255, 136, 0.22) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.highest-roi > * { position: relative; z-index: 1; }
.highest-roi:hover {
  border-color: var(--c-accent);
  box-shadow:
    0 0 0 1px rgba(0, 255, 136, 0.2),
    0 0 32px rgba(0, 255, 136, 0.34),
    0 22px 48px -18px rgba(0, 255, 136, 0.48);
  transform: translateY(-3px);
}

.profit-machine-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  background: rgba(0, 255, 136, 0.10);
  border: 1px solid rgba(0, 255, 136, 0.38);
  border-radius: 999px;
  color: var(--c-accent);
  font-family: 'Manrope', sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow:
    0 0 14px rgba(0, 255, 136, 0.22),
    inset 0 0 8px rgba(0, 255, 136, 0.06);
}
.profit-machine-badge .material-symbols-outlined {
  font-size: 0.85rem !important;
  color: var(--c-accent);
}

.roi-glow {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 3.75rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--c-accent);
  text-shadow:
    0 0 14px rgba(0, 255, 136, 0.55),
    0 0 36px rgba(0, 255, 136, 0.35),
    0 0 72px rgba(0, 255, 136, 0.22);
}

.highest-roi .roi-value {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 4.25rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #44DFA3;
  text-shadow:
    0 0 12px rgba(68, 223, 163, 0.6),
    0 0 24px rgba(68, 223, 163, 0.4),
    0 0 48px rgba(68, 223, 163, 0.2);
  animation: roi-pulse 2.6s ease-in-out infinite;
}

@keyframes roi-pulse {
  0%, 100% {
    text-shadow:
      0 0 12px rgba(68, 223, 163, 0.6),
      0 0 24px rgba(68, 223, 163, 0.4),
      0 0 48px rgba(68, 223, 163, 0.2);
  }
  50% {
    text-shadow:
      0 0 18px rgba(68, 223, 163, 0.78),
      0 0 36px rgba(68, 223, 163, 0.52),
      0 0 64px rgba(68, 223, 163, 0.28);
  }
}

/* ── Trending Strategy card (premium — heaviest visual weight in block) ── */
.trending-strategy {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(0, 255, 136, 0.14) 0%, transparent 55%),
    linear-gradient(155deg, rgba(0, 255, 136, 0.07) 0%, rgba(11, 14, 17, 0) 42%),
    linear-gradient(180deg, #141a17 0%, #0b0e11 100%);
  border: 1px solid rgba(0, 255, 136, 0.38);
  box-shadow:
    0 0 0 1px rgba(0, 255, 136, 0.06),
    0 0 22px rgba(0, 255, 136, 0.18),
    0 18px 44px -18px rgba(0, 255, 136, 0.28),
    inset 0 1px 0 rgba(0, 255, 136, 0.10);
}
.trending-strategy::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 80%; height: 80%;
  background: radial-gradient(circle at center, rgba(0, 255, 136, 0.22), transparent 62%);
  filter: blur(6px);
  pointer-events: none;
  animation: trending-glow-pulse 4.2s var(--ease-in-out) infinite;
}
.trending-strategy::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.55) 0%,
    rgba(0, 255, 136, 0.08) 35%,
    rgba(0, 255, 136, 0.02) 65%,
    rgba(0, 255, 136, 0.35) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.trending-strategy > * { position: relative; z-index: 1; }
@keyframes trending-glow-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1);    }
  50%      { opacity: 1;    transform: scale(1.06); }
}
.trending-strategy:hover {
  border-color: var(--c-accent);
  box-shadow:
    0 0 0 1px rgba(0, 255, 136, 0.22),
    0 0 32px rgba(0, 255, 136, 0.32),
    0 22px 60px -20px rgba(0, 255, 136, 0.45),
    inset 0 1px 0 rgba(0, 255, 136, 0.14);
  transform: translateY(-3px);
}

.trending-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.7rem;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.32);
  border-radius: 999px;
  color: var(--c-accent);
  font-family: 'Manrope', sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow:
    0 0 12px rgba(0, 255, 136, 0.15),
    inset 0 0 8px rgba(0, 255, 136, 0.05);
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  animation: pulse-neon 1.6s var(--ease-in-out) infinite;
}
@keyframes pulse-neon {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
    box-shadow: 0 0 6px rgba(0, 255, 136, 0.45);
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
    box-shadow:
      0 0 14px rgba(0, 255, 136, 0.85),
      0 0 28px rgba(0, 255, 136, 0.4);
  }
}

.trending-users-hero {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 3.75rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--c-accent);
  text-shadow:
    0 0 14px rgba(0, 255, 136, 0.55),
    0 0 36px rgba(0, 255, 136, 0.35),
    0 0 72px rgba(0, 255, 136, 0.22);
}

/* ── Unified strategy-card layout (equal heights + CTA pinned bottom) ── */
.bento-card.most-stable-strategy,
.bento-card.highest-roi,
.bento-card.trending-strategy {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.bento-card.most-stable-strategy > .space-y-5,
.bento-card.highest-roi > .space-y-5,
.bento-card.trending-strategy > .space-y-5 {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.bento-card.most-stable-strategy > .space-y-5 > .view-strategy-btn,
.bento-card.highest-roi > .space-y-5 > .view-strategy-btn,
.bento-card.trending-strategy > .space-y-5 > .view-strategy-btn {
  margin-top: auto;
}

/* ── Card header (title-stack on left, badge on right) ── */
.strategy-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.strategy-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

/* ── Rank kicker (above strategy title) ── */
.strategy-rank {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 0.2rem 0.5rem;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 5px;
  color: rgba(0, 255, 136, 0.85);
  font-family: 'JetBrains Mono', 'Inter', monospace;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}
.trending-strategy .strategy-rank {
  background: rgba(0, 255, 136, 0.11);
  border-color: rgba(0, 255, 136, 0.42);
  color: var(--c-accent);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.22);
}

/* ── Hero metric (single dominant KPI per card) ── */
.strategy-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.4rem 1rem 1.25rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 255, 136, 0.08) 0%, transparent 70%),
    rgba(6, 9, 11, 0.55);
  border: 1px solid rgba(0, 255, 136, 0.14);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 1px 0 rgba(0, 0, 0, 0.4);
}
.trending-strategy .strategy-hero {
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 255, 136, 0.14) 0%, transparent 70%),
    rgba(6, 9, 11, 0.55);
  border-color: rgba(0, 255, 136, 0.24);
}
.strategy-hero-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(133, 148, 139, 0.78);
}
.strategy-hero-value {
  font-family: 'Manrope', sans-serif;
  font-size: 3.1rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}
.strategy-hero-value.accent { color: var(--c-accent); }
.strategy-hero-value.glow {
  text-shadow:
    0 0 14px rgba(0, 255, 136, 0.5),
    0 0 32px rgba(0, 255, 136, 0.3),
    0 0 64px rgba(0, 255, 136, 0.18);
}
.strategy-hero-sub {
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(225, 226, 231, 0.88);
}

/* ── Mini grid (3 supporting stats in a row) ── */
.strategy-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.strategy-mini-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  padding: 0.65rem 0.4rem;
  background: rgba(8, 11, 13, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  transition:
    border-color var(--dur-mid) var(--ease-out),
    background   var(--dur-mid) var(--ease-out);
}
.strategy-mini-field:hover {
  border-color: rgba(0, 255, 136, 0.22);
  background: rgba(0, 255, 136, 0.03);
}
.strategy-mini-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(133, 148, 139, 0.7);
}
.strategy-mini-value {
  font-family: 'Manrope', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}
.strategy-mini-value.accent { color: var(--c-accent); }
.strategy-mini-value.sm { font-size: 0.78rem; letter-spacing: 0; }

.strategy-footnote {
  margin: 0;
  text-align: right;
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(133, 148, 139, 0.55);
}

/* ── Mobile: hide sidebar labels below 768px ── */
@media (max-width: 767px) {
  aside span.label-tiny { display: none; }
  aside { width: 56px !important; }
  main  { padding-left: 56px !important; }
}

/* ── Tablet tweaks ── */
@media (min-width: 768px) and (max-width: 1023px) {
  aside { width: 68px; }
  main  { padding-left: 68px; }
}

/* ── Scrollbar styling ── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--c-surface); }
::-webkit-scrollbar-thumb { background: var(--c-surface-high); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-accent-dim); }

/* ── Period + value compound (sits as one neat unit on the right of card) ── */
.filter-period-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  min-height: 26px;
}
.filter-period-wrap > .filter-value {
  min-width: 3ch;
  text-align: right;
}
.filter-dropdown {
  position: relative;
}
/* Period chip — monospace, subdued accent so `value` reads as primary number */
.filter-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(68, 223, 163, 0.06);
  color: #8DB8A4;
  border: 1px solid rgba(68, 223, 163, 0.22);
  border-radius: var(--r-sm);
  padding: 0.22rem 0.5rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  outline: none;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background   var(--dur-fast) var(--ease-out),
    color        var(--dur-fast) var(--ease-out);
}
.filter-dropdown-trigger .mat-icon {
  font-size: 0.85rem;
  line-height: 1;
  transition: transform var(--dur-fast) var(--ease-out);
}
.filter-dropdown-trigger:hover,
.filter-dropdown.open .filter-dropdown-trigger {
  border-color: rgba(68, 223, 163, 0.6);
  background: rgba(68, 223, 163, 0.14);
  color: #44DFA3;
}
.filter-dropdown.open .filter-dropdown-trigger .mat-icon {
  transform: rotate(180deg);
}
.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 40;
  min-width: 72px;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  background: #0C0F12;
  border: 1px solid rgba(68, 223, 163, 0.25);
  border-radius: var(--r-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity   var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.filter-dropdown.open .filter-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.filter-dropdown-menu li {
  padding: 0.38rem 0.8rem;
  color: #E6F2EC;
  cursor: pointer;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition:
    background var(--dur-fast) var(--ease-out),
    color      var(--dur-fast) var(--ease-out);
}
.filter-dropdown-menu li:hover,
.filter-dropdown-menu li.is-active {
  background: rgba(68, 223, 163, 0.15);
  color: #44DFA3;
}

/* ── Numeric filter inline editor ── */
.filter-value.is-editing {
  outline: 1px solid #44DFA3;
  background: rgba(68, 223, 163, 0.08);
  padding: 0.1rem 0.25rem;
  border-radius: var(--r-sm);
}
/* Selector specificity (input.filter-value-input) beats Tailwind CDN's
   forms-plugin [type='text'] preflight that would otherwise force a white bg. */
input.filter-value-input {
  font: inherit;
  color: inherit;
  background: transparent;
  background-image: none;
  border: 0;
  outline: none;
  padding: 0;
  margin: 0;
  width: 5.5em;
  max-width: 100%;
  height: auto;
  box-shadow: none;
  text-align: right;
  caret-color: #44DFA3;
}
input.filter-value-input::selection {
  background: rgba(68, 223, 163, 0.35);
}

/* ── Unified number/text input shell ──
   One look for every <input type="number"> and related text inputs: bg, border,
   focus ring, height (h-10 = 2.5rem). input.foo selector beats Tailwind CDN's
   [type='text']/[type='number'] forms-plugin preflight. */
input.filter-input,
input.param-input,
select.param-input {
  height: 2.5rem;
  padding: 0 0.75rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #44DFA3;
  background-color: rgba(0, 0, 0, 0.4);
  background-image: none;
  border: 1px solid rgba(68, 223, 163, 0.55);
  border-radius: var(--r-sm);
  box-shadow: 0 0 6px rgba(68, 223, 163, 0.15);
  outline: none;
  caret-color: #44DFA3;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow   var(--dur-fast) var(--ease-out),
    background   var(--dur-fast) var(--ease-out);
}
input.filter-input {
  width: 6em;
  max-width: 100%;
  text-align: right;
}
input.param-input,
select.param-input {
  width: 100%;
  color: #E1E2E7;
}
select.param-input { cursor: pointer; }
input.filter-input::placeholder,
input.param-input::placeholder {
  color: rgba(141, 184, 164, 0.55);
  font-weight: 600;
}
input.filter-input:hover,
input.param-input:hover,
select.param-input:hover {
  border-color: rgba(68, 223, 163, 0.75);
  box-shadow: 0 0 10px rgba(68, 223, 163, 0.22);
}
input.filter-input:focus,
input.param-input:focus,
select.param-input:focus {
  border-color: #44DFA3;
  background-color: rgba(0, 0, 0, 0.55);
  box-shadow:
    0 0 0 1px rgba(68, 223, 163, 0.45),
    0 0 14px rgba(68, 223, 163, 0.45);
}
input.filter-input::selection,
input.param-input::selection {
  background: rgba(68, 223, 163, 0.35);
}
/* ── Filter section wrapper (Price & Market / Liquidity / Volume / ...) ── */
.filter-section {
  background: rgba(68, 223, 163, 0.025);
  border: 1px solid rgba(60, 74, 66, 0.4);
  border-radius: var(--r-lg);
  padding: 0.9rem 1rem 1rem;
  margin-bottom: 0.85rem;
}
.filter-section:last-child { margin-bottom: 0; }
/* Socials already has its own card shell — avoid double-border when wrapped */
.filter-section:has(> .filter-socials) {
  background: transparent;
  border: 0;
  padding: 0;
}
.filter-section-label {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #85948B;
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}
.filter-section:has(> .filter-section-subtitle) .filter-section-label {
  margin-bottom: 0.25rem;
}
.filter-section-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: #85948B;
  margin: 0 0 1.5rem;
}
.filter-section-footer {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: #5A6760;
  font-style: italic;
  margin-top: 1.25rem;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.55rem;
  align-items: stretch;
}

/* ── Unified filter card (all 3 types: value / period+value / toggle) ──
   Cards differ only in their right-slot control but share shell + height. */
.filter-section [data-filter].card-sm,
[data-filter].card-sm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  min-height: 58px;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(68, 223, 163, 0.2);
  border-radius: var(--r-md);
  background: rgba(11, 14, 17, 0.35);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background   var(--dur-fast) var(--ease-out);
}
.filter-section [data-filter].card-sm:hover {
  border-color: rgba(68, 223, 163, 0.4);
  background: rgba(68, 223, 163, 0.045);
}
.filter-section [data-filter].card-sm > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}
.filter-section [data-filter].card-sm > div:first-child > span:last-child {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.25;
  min-width: 0;
}
/* Cards with a period dropdown need visible overflow so the menu can escape */
.filter-section [data-filter].card-sm:has(.filter-period-wrap) {
  overflow: visible;
}
/* Right-side control slot — value / period-wrap / toggle all align the same way */
.filter-section [data-filter].card-sm > .filter-value,
.filter-section [data-filter].card-sm > .filter-toggle,
.filter-section [data-filter].card-sm > .toggle-switch,
.filter-section [data-filter].card-sm > .filter-period-wrap {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
}

/* ── Unified filter-value baseline (strips need for inline styles) ── */
.filter-value {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #44DFA3;
  cursor: pointer;
  outline: none;
  text-align: right;
}

/* ── Boolean filter (pill toggle, on/off) ── */
.filter-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #1A1E22;
  border: 1px solid #2F3438;
  cursor: pointer;
  outline: none;
  transition:
    background   var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow   var(--dur-fast) var(--ease-out);
}
.filter-toggle::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #85948B;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  transition:
    transform  var(--dur-fast) var(--ease-spring),
    background var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.filter-toggle:hover {
  border-color: rgba(68, 223, 163, 0.45);
}
.filter-toggle:focus-visible {
  border-color: #44DFA3;
  box-shadow: 0 0 0 2px rgba(68, 223, 163, 0.25);
}
.filter-toggle.on {
  background: rgba(68, 223, 163, 0.22);
  border-color: #44DFA3;
}
.filter-toggle.on::after {
  transform: translateX(16px);
  background: #44DFA3;
  box-shadow: 0 0 10px rgba(68, 223, 163, 0.65);
}
.filter-toggle.on:hover {
  background: rgba(68, 223, 163, 0.3);
}
/* Card-level affordance: the whole boolean card is clickable */
[data-filter]:has(> .filter-toggle) {
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out);
}
[data-filter]:has(> .filter-toggle.on) {
  border-color: rgba(68, 223, 163, 0.45) !important;
}

/* ── Unified input.toggle-switch (Mint / Freeze / Upgradeable + 4 Socials) ──
   Selector specificity (input.toggle-switch) beats Tailwind CDN forms-plugin's
   [type='checkbox'] preflight that otherwise forces 1rem × 1rem blue checkbox. */
input.toggle-switch {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  background-color: #1A1E22;
  background-image: none;
  border: 1px solid #2F3438;
  color: transparent;
  cursor: pointer;
  outline: none;
  vertical-align: middle;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}
input.toggle-switch::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #85948B;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
input.toggle-switch:checked {
  background-color: rgba(68, 223, 163, 0.22);
  background-image: none;
  border-color: #44DFA3;
}
input.toggle-switch:checked::before {
  transform: translateX(16px);
  background: #44DFA3;
  box-shadow: 0 0 10px rgba(68, 223, 163, 0.65);
}
input.toggle-switch:hover {
  filter: brightness(1.15);
  border-color: rgba(68, 223, 163, 0.55);
}
input.toggle-switch:focus,
input.toggle-switch:focus-visible {
  border-color: #44DFA3;
  box-shadow: 0 0 0 2px rgba(68, 223, 163, 0.3);
  outline: none;
}
/* Card-level affordance: whole card acts as clickable label */
[data-filter]:has(> .toggle-switch) {
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out);
}
[data-filter]:has(> .toggle-switch:checked) {
  border-color: rgba(68, 223, 163, 0.45) !important;
}

/* ── Step 2 Wallet Activity — unified card normalization ──
   All Step 2 filter cards (numeric / period / toggle) share one shell:
   p-5, min-h-[120px], flex flex-col justify-between, uniform typography.
   Scoped to #wiz-2 so Step 1's dense horizontal cards are untouched. */
#wiz-2 .filter-section [data-filter].card-sm {
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem;
  min-height: 120px;
}
#wiz-2 .filter-section [data-filter].card-sm > div:first-child {
  align-items: flex-start;
  gap: 0.6rem;
  width: 100%;
}
/* Right-slot controls no longer push right — they sit at the card's bottom */
#wiz-2 .filter-section [data-filter].card-sm > .filter-value,
#wiz-2 .filter-section [data-filter].card-sm > input.filter-input,
#wiz-2 .filter-section [data-filter].card-sm > .filter-period-wrap {
  margin-left: 0;
  margin-top: auto;
  align-self: stretch;
  width: 100%;
}
#wiz-2 .filter-section [data-filter].card-sm > .filter-toggle,
#wiz-2 .filter-section [data-filter].card-sm > .toggle-switch {
  margin-left: 0;
  margin-top: auto;
  align-self: flex-end;
}
/* Unified title — text-sm / font-semibold / text-white/90 (beats inline styles) */
#wiz-2 .filter-section [data-filter].card-sm > div:first-child span:not(.mat-icon) {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  line-height: 1.3;
  letter-spacing: 0;
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}
/* Unified subtitle (nested inside header text-wrapper) — text-xs / text-white/50 */
#wiz-2 .filter-section [data-filter].card-sm > div:first-child > div > div {
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.5) !important;
  margin-top: 0.25rem !important;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: break-word;
}
/* Helper text sibling of input (Holder / Developer patterns) — same as subtitle */
#wiz-2 .filter-section [data-filter].card-sm > div:not(:first-child) {
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.5) !important;
  margin-top: 0.25rem !important;
  font-style: normal !important;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ── Socials collapsible (boolean tri-state group) ── */
.filter-socials {
  background: #0C0F12;
  border: 1px solid rgba(68, 223, 163, 0.2);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow   var(--dur-fast) var(--ease-out);
}
.filter-socials[data-open="true"] {
  border-color: rgba(68, 223, 163, 0.4);
  box-shadow: 0 0 0 1px rgba(68, 223, 163, 0.12) inset,
              0 6px 18px rgba(0, 0, 0, 0.25);
}
.socials-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: transparent;
  border: none;
  color: #E1E2E7;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.socials-toggle:hover {
  background: rgba(68, 223, 163, 0.06);
}
.socials-toggle:focus-visible {
  outline: none;
  background: rgba(68, 223, 163, 0.08);
  box-shadow: inset 0 0 0 1px rgba(68, 223, 163, 0.45);
}
.filter-socials-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.filter-socials-label .mat-icon {
  font-size: 0.95rem;
  color: #44DFA3;
}
.filter-socials-chevron {
  color: #44DFA3;
  font-size: 1.05rem;
  transition: transform 0.25s ease;
}
.filter-socials[data-open="true"] .filter-socials-chevron {
  transform: rotate(180deg);
}
.filter-socials[data-open="false"] .socials-panel {
  display: none;
}
.socials-panel {
  padding: 0 0.85rem 0.6rem;
}
.filter-tri-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
}
.filter-tri-row:not(:last-child) {
  border-bottom: 1px solid rgba(60, 74, 66, 0.2);
}
.filter-compact-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #E1E2E7;
}
.filter-compact-label .mat-icon {
  font-size: 0.95rem;
}

/* Per-network icon tint */
.filter-tri-row[data-filter="hasWebsite"]  .filter-compact-label .mat-icon { color: #44DFA3; }
.filter-tri-row[data-filter="hasTwitter"]  .filter-compact-label .mat-icon { color: #E1E2E7; }
.filter-tri-row[data-filter="hasTelegram"] .filter-compact-label .mat-icon { color: #4FC3F7; }
.filter-tri-row[data-filter="hasDiscord"]  .filter-compact-label .mat-icon { color: #B4A6FF; }

/* Tri-state segmented toggle (on / off / any) */
.filter-tri-toggle {
  display: inline-flex;
  background: #1A1E22;
  border: 1px solid #2F3438;
  border-radius: 999px;
  padding: 2px;
  gap: 1px;
}
.filter-tri-toggle button {
  background: transparent;
  border: none;
  color: #85948B;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-out),
    color      var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.filter-tri-toggle button:hover {
  color: #E1E2E7;
}
.filter-tri-toggle button:focus-visible {
  outline: none;
  color: #E1E2E7;
  box-shadow: 0 0 0 2px rgba(68, 223, 163, 0.55);
}
.filter-tri-toggle button[aria-pressed="true"][data-val="on"] {
  background: rgba(68, 223, 163, 0.24);
  color: #44DFA3;
  box-shadow: 0 0 8px rgba(68, 223, 163, 0.35);
}
.filter-tri-toggle button[aria-pressed="true"][data-val="off"] {
  background: rgba(255, 110, 110, 0.22);
  color: #FF9A9A;
  box-shadow: 0 0 8px rgba(255, 110, 110, 0.25);
}
.filter-tri-toggle button[aria-pressed="true"][data-val="any"] {
  background: rgba(173, 198, 255, 0.18);
  color: #ADC6FF;
  box-shadow: 0 0 8px rgba(173, 198, 255, 0.22);
}

/* ── Wizard step header typography ── */
.wiz-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.wiz-header-main {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
.wiz-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-text);
  margin: 0;
}
.wiz-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--c-text-muted);
  margin: 0;
}
.wiz-step-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}
.wiz-step-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.wiz-step-bars {
  display: flex;
  gap: 4px;
}
.wiz-step-bars > span {
  display: block;
  height: 4px;
  width: 32px;
  border-radius: 4px;
  background: var(--c-surface-high);
}
.wiz-step-bars > span.is-done {
  background: var(--c-accent);
}

/* ── Step 3: "advanced" strategy group highlight ── */
#strategy-grid-scroll[data-mode="grid"] section.strategy-section.strategy-group--advanced {
  background: linear-gradient(180deg, rgba(68, 223, 163, 0.05), rgba(68, 223, 163, 0.015));
  border: 1px solid rgba(68, 223, 163, 0.2);
  border-radius: 10px;
  padding: 0.85rem 0.8rem 0.9rem;
  margin-top: 0.5rem;
}
#strategy-grid-scroll[data-mode="grid"] section.strategy-section.strategy-group--advanced > h3.strategy-section-title {
  color: #44DFA3;
  border-left-color: #44DFA3;
  text-shadow: 0 0 12px rgba(68, 223, 163, 0.35);
}

/* ── "Just updated" flash (short background + border pulse on preset apply) ── */
@keyframes just-updated {
  0%   { box-shadow: 0 0 0 0 rgba(68, 223, 163, 0);
         border-color: transparent;
         background-color: transparent; }
  18%  { box-shadow: 0 0 0 1px rgba(68, 223, 163, 0.55),
                     0 0 32px rgba(68, 223, 163, 0.28);
         border-color: rgba(68, 223, 163, 0.55);
         background-color: rgba(68, 223, 163, 0.05); }
  100% { box-shadow: 0 0 0 0 rgba(68, 223, 163, 0);
         border-color: transparent;
         background-color: transparent; }
}
.just-updated {
  animation: just-updated 800ms var(--ease-out) both;
}

/* ── Selector helper text (subtle hint above the strategy selector) ── */
.selector-helper {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--c-text-muted);
  margin: 0 0 0.75rem;
}
.selector-helper .mat-icon {
  font-size: 0.9rem;
  vertical-align: -2px;
  margin-right: 0.25rem;
  color: rgba(68, 223, 163, 0.75);
}

@media (prefers-reduced-motion: reduce) {
  .filter-toggle,
  .filter-toggle::after,
  .socials-panel,
  .filter-socials-chevron,
  .filter-tri-toggle button {
    transition: none;
  }
  .just-updated { animation: none; }
}

@media (max-width: 768px) {
  #strategy-details-panel {
    position: static !important;
    top: auto !important;
    padding: 1rem !important;
    margin-top: 1rem;
    order: 2;
  }
  #strategy-details-panel > div[style*="font-family:'Manrope'"] {
    font-size: 1.05rem !important;
  }
  #strategy-details-panel .chart-ph {
    height: 110px !important;
  }
  #strategy-grid-scroll {
    max-height: none !important;
    overflow-y: visible !important;
    padding-right: 0 !important;
  }
  #wiz-3 .grid[style*="min-height"] {
    min-height: auto !important;
    gap: 1rem !important;
  }
  .strategy-pick {
    padding: 0.9rem !important;
  }
  .strategy-hero {
    padding: 1.25rem !important;
    border-radius: 14px !important;
  }
}

/* ── Inline filter-warning badge + input state ──
   evaluateFilterWarnings() renders a `<span class="filter-warning">` badge
   inside [data-filter].card-sm AND tags the input with `.filter-warning`.
   Tag-prefixed selectors (input.filter-warning / span.filter-warning) beat
   the Tailwind CDN forms-plugin preflight the same way input.filter-input
   does — a bare `.filter-warning` loses the specificity race. */
input.filter-warning {
  border-color: rgba(245, 166, 35, 0.7);
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.3);
  color: #F5A623;
  caret-color: #F5A623;
}
input.filter-warning:hover {
  border-color: rgba(245, 166, 35, 0.85);
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.4);
}
input.filter-warning:focus {
  border-color: #F5A623;
  box-shadow:
    0 0 0 1px rgba(245, 166, 35, 0.55),
    0 0 14px rgba(245, 166, 35, 0.45);
}
span.filter-warning {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #F5A623;
  background: rgba(245, 166, 35, 0.14);
  border: 1px solid rgba(245, 166, 35, 0.55);
  border-radius: 50%;
  cursor: help;
  animation: filter-warning-pulse 2.2s ease-in-out infinite;
}
span.filter-warning > .mat-icon {
  font-size: 0.95rem;
  line-height: 1;
  color: #F5A623;
}
@keyframes filter-warning-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.38); }
  50%      { box-shadow: 0 0 0 6px rgba(245, 166, 35, 0);   }
}
