/* ==========================================================================
   NxtNova · redesign layer
   Loaded AFTER css/styles.css. Overrides via cascade.
   Vibe: dark luxury tech · cool blue base · rare warm orange accent.
   Brand mark: iridescent "jo" ligature with orange neon halo.
   ========================================================================== */

@layer redesign {

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* — base ink ramp — */
  --jn-ink-0:   #000000;
  --jn-ink-1:   #06080d;
  --jn-ink-2:   #0a0d15;
  --jn-ink-3:   #0c0f17;
  --jn-ink-4:   #11151f;
  --jn-ink-5:   #161b27;
  --jn-ink-6:   #1d2330;
  --jn-ink-7:   #232a3a;

  /* — blue ramp — */
  --jn-blue-0:  #07080b;
  --jn-blue-1:  #0c0e13;   /* deep navy */
  --jn-blue-2:  #14161c;
  --jn-blue-3:  #191c24;
  --jn-blue-4:  #20232c;
  --jn-blue-5:  #8b909e;   /* cobalt */
  --jn-blue-6:  #aab0be;
  --jn-blue-7:  #c2c7d3;   /* electric */
  --jn-blue-8:  #c0c5d1;
  --jn-blue-9:  #c8ccd6;   /* sky */

  /* — iridescent accents (chrome text gradients) — */
  --jn-iri-cyan:    #d6dae2;
  --jn-iri-sky:     #c8ccd6;
  --jn-iri-cobalt:  #c2c7d3;
  --jn-iri-sapphire:#828594;
  --jn-iri-navy:    #12141b;
  --jn-iri-violet:  #9698a4;

  /* — warm orange accents (used SPARINGLY) — */
  --jn-orange:        #c9ccd6;
  --jn-orange-soft:   #d8dae2;
  --jn-orange-deep:   #8f9098;
  --jn-orange-ember:  #4a4c54;
  --jn-orange-glow:   rgba(184, 188, 200,0.35);
  --jn-orange-glow-2: rgba(184, 188, 200,0.12);

  /* — text — */
  --jn-text:        #ffffff;
  --jn-text-muted:  #cdd2dc;
  --jn-text-faint:  #7d8295;
  --jn-text-dim:    #4a4f5e;
  --jn-text-ghost:  #2d3140;

  /* — borders — */
  --jn-border:        rgba(255,255,255,0.08);
  --jn-border-strong: rgba(255,255,255,0.16);
  --jn-border-blue:   rgba(190, 194, 205,0.20);
  --jn-border-orange: rgba(184, 188, 200,0.30);

  /* — status — */
  --jn-success:  #3dd68c;
  --jn-success-2:rgba(61,214,140,0.18);
  --jn-danger:   #ff5a5a;
  --jn-danger-2: rgba(255,90,90,0.18);
  --jn-warning:  #ffb02e;
  --jn-warning-2:rgba(214, 218, 227,0.18);
  --jn-info:     var(--jn-blue-7);

  /* — spacing scale (rem) — */
  --jn-s-0:  0;
  --jn-s-1:  0.25rem;
  --jn-s-2:  0.5rem;
  --jn-s-3:  0.75rem;
  --jn-s-4:  1rem;
  --jn-s-5:  1.25rem;
  --jn-s-6:  1.5rem;
  --jn-s-7:  2rem;
  --jn-s-8:  2.5rem;
  --jn-s-9:  3rem;
  --jn-s-10: 4rem;
  --jn-s-11: 5rem;
  --jn-s-12: 6rem;
  --jn-s-13: 8rem;
  --jn-s-14: 10rem;

  /* — radius — */
  --jn-r-1:   4px;
  --jn-r-2:   8px;
  --jn-r-3:   12px;
  --jn-r-4:   16px;
  --jn-r-5:   20px;
  --jn-r-6:   24px;
  --jn-r-7:   32px;
  --jn-r-full:9999px;

  /* — shadows — */
  --jn-shadow-1: 0 1px 2px rgba(0,0,0,0.4);
  --jn-shadow-2: 0 4px 12px rgba(0,0,0,0.5);
  --jn-shadow-3: 0 12px 36px rgba(0,0,0,0.55);
  --jn-shadow-4: 0 24px 64px rgba(0,0,0,0.6);
  --jn-shadow-5: 0 40px 100px rgba(0,0,0,0.7);
  --jn-shadow-blue:   0 12px 40px rgba(190, 194, 205,0.25);
  --jn-shadow-orange: 0 12px 40px rgba(184, 188, 200,0.30);
  --jn-shadow-inner-hi: inset 0 1px 0 rgba(255,255,255,0.08);
  --jn-shadow-inner-lo: inset 0 -1px 0 rgba(0,0,0,0.4);

  /* — blurs — */
  --jn-blur-1: 6px;
  --jn-blur-2: 12px;
  --jn-blur-3: 20px;
  --jn-blur-4: 32px;
  --jn-blur-5: 60px;

  /* — easing curves — */
  --jn-ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
  --jn-ease-out-strong: cubic-bezier(0.22, 1, 0.36, 1);
  --jn-ease-in-out:     cubic-bezier(0.65, 0, 0.35, 1);
  --jn-ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
  --jn-ease-back:       cubic-bezier(0.68, -0.55, 0.27, 1.55);
  --jn-ease-snap:       cubic-bezier(0.5, 0, 0.1, 1);
  --jn-ease-linear:     linear;

  /* — durations — */
  --jn-t-instant: 80ms;
  --jn-t-fast:    160ms;
  --jn-t-base:    240ms;
  --jn-t-slow:    420ms;
  --jn-t-slower:  640ms;
  --jn-t-glacial: 1200ms;

  /* — z-index — */
  --jn-z-base:    0;
  --jn-z-rise:    10;
  --jn-z-stick:   20;
  --jn-z-nav:     50;
  --jn-z-drawer:  70;
  --jn-z-overlay: 80;
  --jn-z-modal:   90;
  --jn-z-toast:   100;
  --jn-z-cursor:  9999;

  /* — type stacks — */
  --jn-font-sans:    -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --jn-font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter Display', 'Inter', system-ui, sans-serif;
  --jn-font-mono:    'SF Mono', 'JetBrains Mono', 'Fira Code', 'Menlo', 'Monaco', ui-monospace, monospace;
  --jn-font-serif:   'New York', 'Times New Roman', Georgia, serif;

  /* — sizing — */
  --jn-content-max: 1240px;
  --jn-content-narrow: 760px;
  --jn-content-wide: 1480px;

  /* — spotlight + mesh dynamic vars (set by JS) — */
  --mx: 50%;
  --my: 50%;
  --mesh-x: 50%;
  --mesh-y: 30%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-glare-x: 50%;
  --tilt-glare-y: 50%;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--jn-ink-0);
  color: var(--jn-text);
  font-family: var(--jn-font-sans);
  font-feature-settings: "ss01", "ss02", "cv01", "cv11", "kern", "liga";
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scrollbar-color: rgba(190, 194, 205,0.4) transparent;
  scrollbar-width: thin;
}

body {
  background: radial-gradient(ellipse at 20% -10%, var(--jn-blue-1) 0%, var(--jn-ink-0) 65%) no-repeat fixed;
  color: var(--jn-text);
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

::selection {
  background: var(--jn-blue-5);
  color: white;
  text-shadow: 0 0 12px rgba(190, 194, 205,0.6);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(190, 194, 205,0.35), rgba(190, 194, 205,0.15));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(190, 194, 205,0.6), rgba(190, 194, 205,0.3));
  background-clip: padding-box;
}

img, svg, video, canvas { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, [role="button"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--jn-ink-0), 0 0 0 4px var(--jn-orange);
  border-radius: var(--jn-r-2);
}

a { color: inherit; text-decoration: none; }
a.jn-link {
  color: var(--jn-blue-7);
  text-decoration: underline;
  text-decoration-color: rgba(190, 194, 205,0.4);
  text-underline-offset: 3px;
  transition: color var(--jn-t-fast) var(--jn-ease-out), text-decoration-color var(--jn-t-fast);
}
a.jn-link:hover {
  color: var(--jn-blue-9);
  text-decoration-color: var(--jn-blue-9);
}

input, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
}

hr.jn-rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--jn-border), transparent);
  margin: var(--jn-s-7) 0;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
.jn-display, .jn-h1, .jn-h2, .jn-h3, .jn-h4, .jn-h5, .jn-h6 {
  font-family: var(--jn-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--jn-text);
  margin: 0;
}

.jn-display {
  font-size: clamp(2.5rem, 6vw + 1rem, 6.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.jn-h1 { font-size: clamp(2rem, 4vw + 1rem, 4rem); letter-spacing: -0.03em; }
.jn-h2 { font-size: clamp(1.625rem, 2.4vw + 1rem, 2.75rem); letter-spacing: -0.025em; }
.jn-h3 { font-size: clamp(1.375rem, 1.6vw + 1rem, 2.125rem); letter-spacing: -0.02em; }
.jn-h4 { font-size: clamp(1.125rem, 1vw + 1rem, 1.5rem); }
.jn-h5 { font-size: 1.125rem; }
.jn-h6 { font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--jn-text-faint); }

.jn-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--jn-text-muted);
}
.jn-body-lg { font-size: 1.125rem; line-height: 1.55; }
.jn-body-sm { font-size: 0.875rem; line-height: 1.55; }
.jn-caption { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--jn-text-faint); }

.jn-mono { font-family: var(--jn-font-mono); font-size: 0.875em; letter-spacing: -0.01em; }
.jn-serif { font-family: var(--jn-font-serif); font-style: italic; }

.jn-text-muted { color: var(--jn-text-muted); }
.jn-text-faint { color: var(--jn-text-faint); }
.jn-text-dim   { color: var(--jn-text-dim); }
.jn-text-orange{ color: var(--jn-orange); }
.jn-text-blue  { color: var(--jn-blue-7); }

/* — iridescent gradient text — */
.jn-text-iridescent {
  background: linear-gradient(120deg,
    var(--jn-iri-cyan) 0%,
    var(--jn-iri-cobalt) 30%,
    var(--jn-iri-sapphire) 55%,
    var(--jn-iri-violet) 80%,
    var(--jn-iri-cyan) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: jn-iridescent-pan 9s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .jn-text-iridescent { animation: none; background-position: 0 0; }
}

.jn-text-orange-glow {
  color: var(--jn-orange);
  text-shadow: 0 0 16px rgba(184, 188, 200,0.45), 0 0 36px rgba(184, 188, 200,0.18);
}

.jn-text-shimmer {
  background: linear-gradient(110deg,
    var(--jn-text) 35%,
    var(--jn-iri-cyan) 50%,
    var(--jn-text) 65%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: jn-text-shimmer 3.5s var(--jn-ease-in-out) infinite;
}

.jn-text-balance { text-wrap: balance; }
.jn-text-pretty  { text-wrap: pretty; }
.jn-text-nowrap  { white-space: nowrap; }
.jn-text-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

/* — drop cap — */
.jn-dropcap::first-letter {
  font-family: var(--jn-font-display);
  font-size: 3.4em;
  font-weight: 800;
  float: left;
  line-height: 0.85;
  margin: 0.05em 0.12em -0.05em 0;
  background: linear-gradient(180deg, var(--jn-orange), var(--jn-orange-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   4. LAYOUT PRIMITIVES
   ========================================================================== */
.jn-container {
  width: 100%;
  max-width: var(--jn-content-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.jn-container-narrow { max-width: var(--jn-content-narrow); }
.jn-container-wide   { max-width: var(--jn-content-wide); }
.jn-container-fluid  { max-width: none; }

.jn-stack { display: flex; flex-direction: column; gap: var(--jn-s-4); }
.jn-stack-tight  { gap: var(--jn-s-2); }
.jn-stack-loose  { gap: var(--jn-s-7); }
.jn-stack-vast   { gap: var(--jn-s-10); }

.jn-cluster { display: flex; flex-wrap: wrap; gap: var(--jn-s-3); align-items: center; }
.jn-cluster-tight { gap: var(--jn-s-2); }
.jn-cluster-loose { gap: var(--jn-s-5); }

.jn-row { display: flex; align-items: center; gap: var(--jn-s-3); }
.jn-row-between { justify-content: space-between; }
.jn-row-end     { justify-content: flex-end; }
.jn-row-center  { justify-content: center; }

.jn-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--jn-s-7);
  align-items: center;
}
@media (max-width: 768px) { .jn-split { grid-template-columns: 1fr; gap: var(--jn-s-6); } }

.jn-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--jn-s-5); }
.jn-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--jn-s-5); }
.jn-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--jn-s-5); }
.jn-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--jn-s-5);
}
@media (max-width: 1024px) {
  .jn-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .jn-grid-3, .jn-grid-2, .jn-grid-4 { grid-template-columns: 1fr; }
}

.jn-section {
  padding-block: clamp(3rem, 8vw, 8rem);
  position: relative;
}
.jn-section-tight { padding-block: clamp(2rem, 5vw, 5rem); }

.jn-center {
  display: grid;
  place-items: center;
  min-height: 60dvh;
}

.jn-spacer-1  { height: var(--jn-s-1);  }
.jn-spacer-2  { height: var(--jn-s-2);  }
.jn-spacer-3  { height: var(--jn-s-3);  }
.jn-spacer-4  { height: var(--jn-s-4);  }
.jn-spacer-5  { height: var(--jn-s-5);  }
.jn-spacer-6  { height: var(--jn-s-6);  }
.jn-spacer-7  { height: var(--jn-s-7);  }
.jn-spacer-8  { height: var(--jn-s-8);  }
.jn-spacer-9  { height: var(--jn-s-9);  }
.jn-spacer-10 { height: var(--jn-s-10); }
.jn-spacer-12 { height: var(--jn-s-12); }

.jn-flex { display: flex; }
.jn-block { display: block; }
.jn-inline { display: inline; }
.jn-inline-block { display: inline-block; }
.jn-grid { display: grid; }
.jn-hidden { display: none !important; }

.jn-flex-1 { flex: 1; }
.jn-flex-auto { flex: 0 0 auto; }
.jn-w-full { width: 100%; }
.jn-h-full { height: 100%; }
.jn-h-screen { height: 100dvh; }

.jn-relative { position: relative; }
.jn-absolute { position: absolute; }
.jn-fixed    { position: fixed; }
.jn-sticky   { position: sticky; top: 0; }

.jn-overflow-hidden { overflow: hidden; }
.jn-overflow-clip   { overflow: clip; }

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.jn-btn {
  --btn-bg: var(--jn-ink-5);
  --btn-fg: var(--jn-text);
  --btn-border: var(--jn-border-strong);
  --btn-shadow: var(--jn-shadow-2);
  --btn-shimmer: rgba(255,255,255,0.18);
  --btn-py: 0.75rem;
  --btn-px: 1.25rem;
  --btn-fs: 0.9375rem;
  --btn-radius: var(--jn-r-3);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--jn-s-2);
  padding: var(--btn-py) var(--btn-px);
  font-family: var(--jn-font-sans);
  font-size: var(--btn-fs);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: var(--btn-radius);
  box-shadow: var(--btn-shadow), var(--jn-shadow-inner-hi);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    transform var(--jn-t-fast) var(--jn-ease-out),
    background-color var(--jn-t-fast) var(--jn-ease-out),
    border-color var(--jn-t-fast) var(--jn-ease-out),
    box-shadow var(--jn-t-base) var(--jn-ease-out),
    color var(--jn-t-fast) var(--jn-ease-out);
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
}

.jn-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, var(--btn-shimmer) 50%, transparent 75%);
  background-size: 220% 100%;
  background-position: -100% 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--jn-t-base);
  z-index: 1;
}
.jn-btn:hover::before {
  opacity: 1;
  animation: jn-shimmer-sweep 900ms var(--jn-ease-out) forwards;
}
.jn-btn > * { position: relative; z-index: 2; }

.jn-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--jn-shadow-3), var(--jn-shadow-inner-hi);
}
.jn-btn:active {
  transform: translateY(0) scale(0.985);
  transition-duration: var(--jn-t-instant);
}
.jn-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--jn-ink-0), 0 0 0 4px var(--jn-orange), var(--btn-shadow);
}
.jn-btn[disabled], .jn-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.jn-btn[disabled]:hover::before, .jn-btn[aria-disabled="true"]:hover::before {
  opacity: 0;
  animation: none;
}

/* — variants — */
.jn-btn-primary {
  --btn-bg: linear-gradient(180deg, var(--jn-blue-6), var(--jn-blue-4));
  --btn-fg: white;
  --btn-border: rgba(106,162,255,0.55);
  --btn-shadow: 0 6px 20px rgba(58,120,255,0.4), inset 0 1px 0 rgba(255,255,255,0.18);
  --btn-shimmer: rgba(255,255,255,0.32);
}
.jn-btn-primary:hover {
  --btn-bg: linear-gradient(180deg, var(--jn-blue-7), var(--jn-blue-5));
  box-shadow: 0 12px 40px rgba(58,120,255,0.55), inset 0 1px 0 rgba(255,255,255,0.22);
}

.jn-btn-orange {
  --btn-bg: linear-gradient(180deg, var(--jn-orange), var(--jn-orange-deep));
  --btn-fg: white;
  --btn-border: rgba(184, 188, 200,0.6);
  --btn-shadow: 0 8px 24px rgba(184, 188, 200,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
  --btn-shimmer: rgba(255,255,255,0.4);
}

.jn-btn-ghost {
  --btn-bg: transparent;
  --btn-border: transparent;
  --btn-shadow: none;
}
.jn-btn-ghost:hover {
  --btn-bg: var(--jn-ink-5);
  --btn-border: var(--jn-border);
}

.jn-btn-outline {
  --btn-bg: transparent;
  --btn-border: var(--jn-border-strong);
  --btn-shadow: none;
}
.jn-btn-outline:hover {
  --btn-bg: rgba(255,255,255,0.04);
  --btn-border: var(--jn-border-blue);
}

.jn-btn-glass {
  --btn-bg: rgba(255,255,255,0.04);
  --btn-border: rgba(255,255,255,0.1);
  backdrop-filter: blur(var(--jn-blur-2)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--jn-blur-2)) saturate(180%);
}
.jn-btn-glass:hover {
  --btn-bg: rgba(255,255,255,0.08);
  --btn-border: rgba(255,255,255,0.2);
}

.jn-btn-danger {
  --btn-bg: linear-gradient(180deg, #ff4040, #c41818);
  --btn-fg: white;
  --btn-border: rgba(255,90,90,0.5);
  --btn-shadow: 0 6px 20px rgba(255,90,90,0.4);
}

/* — sizes — */
.jn-btn-xs { --btn-py: 0.375rem; --btn-px: 0.75rem; --btn-fs: 0.75rem; --btn-radius: var(--jn-r-2); }
.jn-btn-sm { --btn-py: 0.5rem; --btn-px: 0.875rem; --btn-fs: 0.8125rem; --btn-radius: var(--jn-r-2); }
.jn-btn-md { /* default */ }
.jn-btn-lg { --btn-py: 0.875rem; --btn-px: 1.625rem; --btn-fs: 1rem; --btn-radius: var(--jn-r-4); }
.jn-btn-xl { --btn-py: 1.125rem; --btn-px: 2rem; --btn-fs: 1.0625rem; --btn-radius: var(--jn-r-4); font-weight: 650; }

.jn-btn-block { display: flex; width: 100%; }

/* — icon-only — */
.jn-btn-icon {
  --btn-py: 0;
  --btn-px: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: var(--jn-r-full);
}
.jn-btn-icon-sm { width: 2rem; height: 2rem; }
.jn-btn-icon-lg { width: 3rem; height: 3rem; }

/* — pill (full radius) — */
.jn-btn-pill { border-radius: var(--jn-r-full); }

/* — loading — */
.jn-btn-loading { color: transparent !important; pointer-events: none; }
.jn-btn-loading::after {
  content: "";
  position: absolute;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: jn-spin 0.8s linear infinite;
  color: white;
  inset: 0;
  margin: auto;
  z-index: 3;
}

/* — ripple — */
.jn-btn[data-ripple] {
  position: relative;
}
.jn-ripple-el {
  position: absolute;
  border-radius: 50%;
  background: var(--ripple-color, rgba(255,255,255,0.4));
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  z-index: 1;
}

/* — group — */
.jn-btn-group {
  display: inline-flex;
  border-radius: var(--jn-r-3);
  overflow: hidden;
  border: 1px solid var(--jn-border);
  background: var(--jn-ink-3);
}
.jn-btn-group .jn-btn {
  border-radius: 0;
  border: 0;
  border-right: 1px solid var(--jn-border);
  box-shadow: none;
}
.jn-btn-group .jn-btn:last-child { border-right: 0; }
.jn-btn-group .jn-btn.is-active {
  background: var(--jn-blue-5);
  color: white;
}

/* — link button — */
.jn-btn-link {
  --btn-bg: transparent;
  --btn-border: transparent;
  --btn-shadow: none;
  padding: 0;
  color: var(--jn-blue-7);
  text-decoration: underline;
  text-decoration-color: rgba(190, 194, 205,0.3);
  text-underline-offset: 4px;
}
.jn-btn-link:hover {
  color: var(--jn-blue-9);
  text-decoration-color: var(--jn-blue-9);
  transform: none;
}

/* — magnetic — */
[data-magnetic] {
  display: inline-flex;
  transition: transform var(--jn-t-base) var(--jn-ease-out);
  will-change: transform;
}

/* ==========================================================================
   6. SURFACES / CARDS
   ========================================================================== */
.jn-card {
  position: relative;
  background: var(--jn-ink-3);
  border: 1px solid var(--jn-border);
  border-radius: var(--jn-r-4);
  padding: var(--jn-s-6);
  box-shadow: var(--jn-shadow-2);
  transition:
    transform var(--jn-t-base) var(--jn-ease-out),
    border-color var(--jn-t-base) var(--jn-ease-out),
    box-shadow var(--jn-t-base) var(--jn-ease-out);
  isolation: isolate;
}

.jn-card-elevated {
  background: var(--jn-ink-4);
  box-shadow: var(--jn-shadow-3);
}

.jn-card-glass {
  background: rgba(15,18,28,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(var(--jn-blur-3)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--jn-blur-3)) saturate(180%);
}

.jn-card-flat {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}

.jn-card-bordered { border: 1px solid var(--jn-border-strong); }

/* — interactive — */
.jn-card-hover {
  cursor: pointer;
}
.jn-card-hover:hover {
  transform: translateY(-2px);
  border-color: var(--jn-border-blue);
  box-shadow: var(--jn-shadow-3), var(--jn-shadow-blue);
}

/* — gradient bordered (animated conic) — */
.jn-card-gradient-border {
  position: relative;
  background: var(--jn-ink-3);
  border: 1px solid transparent;
  background-clip: padding-box;
}
.jn-card-gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle, 0deg),
    var(--jn-blue-7) 0deg,
    var(--jn-iri-violet) 90deg,
    var(--jn-orange) 180deg,
    var(--jn-blue-5) 270deg,
    var(--jn-blue-7) 360deg);
  -webkit-mask: linear-gradient(black, black) content-box, linear-gradient(black, black);
  mask: linear-gradient(black, black) content-box, linear-gradient(black, black);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: jn-rotate-angle 8s linear infinite;
  pointer-events: none;
}
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes jn-rotate-angle {
  to { --angle: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
  .jn-card-gradient-border::before { animation: none; }
}

/* — spotlight — moves with cursor — */
.jn-card-spotlight {
  overflow: hidden;
}
.jn-card-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mx) var(--my),
    rgba(190, 194, 205,0.18),
    rgba(190, 194, 205,0.04) 30%,
    transparent 50%);
  opacity: 0;
  transition: opacity var(--jn-t-base) var(--jn-ease-out);
  pointer-events: none;
  z-index: 0;
}
.jn-card-spotlight:hover::after { opacity: 1; }
.jn-card-spotlight > * { position: relative; z-index: 1; }

/* — orange spotlight variant — */
.jn-card-spotlight-orange::after {
  background: radial-gradient(600px circle at var(--mx) var(--my),
    rgba(184, 188, 200,0.20),
    rgba(184, 188, 200,0.05) 30%,
    transparent 50%);
}

/* — popular (pricing) — orange halo — */
.jn-card-popular {
  position: relative;
  border-color: rgba(184, 188, 200,0.5);
}
.jn-card-popular::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(circle at center, var(--jn-orange-glow), transparent 70%);
  filter: blur(20px);
  opacity: 0.6;
  z-index: -1;
  animation: jn-glow-pulse-orange 3s ease-in-out infinite;
}

/* — card sizes — */
.jn-card-sm { padding: var(--jn-s-4); border-radius: var(--jn-r-3); }
.jn-card-lg { padding: var(--jn-s-8); border-radius: var(--jn-r-5); }
.jn-card-xl { padding: var(--jn-s-10); border-radius: var(--jn-r-6); }

/* — card sections — */
.jn-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--jn-s-4);
  padding-bottom: var(--jn-s-4);
  margin-bottom: var(--jn-s-4);
  border-bottom: 1px solid var(--jn-border);
}
.jn-card-foot {
  padding-top: var(--jn-s-4);
  margin-top: var(--jn-s-4);
  border-top: 1px solid var(--jn-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--jn-s-3);
}
.jn-card-title {
  font-size: 1.125rem;
  font-weight: 650;
  margin: 0;
}
.jn-card-sub {
  font-size: 0.875rem;
  color: var(--jn-text-faint);
  margin-top: var(--jn-s-1);
}

/* ==========================================================================
   7. FORMS
   ========================================================================== */
.jn-input,
.jn-textarea,
.jn-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--jn-font-sans);
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--jn-text);
  background: var(--jn-ink-3);
  border: 1px solid var(--jn-border-strong);
  border-radius: var(--jn-r-3);
  outline: none;
  transition:
    border-color var(--jn-t-fast) var(--jn-ease-out),
    background-color var(--jn-t-fast) var(--jn-ease-out),
    box-shadow var(--jn-t-base) var(--jn-ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.jn-input::placeholder,
.jn-textarea::placeholder { color: var(--jn-text-dim); }

.jn-input:hover,
.jn-textarea:hover,
.jn-select:hover { border-color: var(--jn-border-blue); }

.jn-input:focus,
.jn-textarea:focus,
.jn-select:focus {
  border-color: var(--jn-blue-6);
  background: var(--jn-ink-4);
  box-shadow: 0 0 0 4px rgba(190, 194, 205,0.15);
}

.jn-textarea {
  min-height: 7rem;
  resize: vertical;
  font-family: inherit;
  line-height: 1.55;
}

/* — input wrap with icon — */
.jn-field {
  position: relative;
}
.jn-field-icon {
  position: absolute;
  top: 50%;
  left: 0.875rem;
  transform: translateY(-50%);
  color: var(--jn-text-dim);
  pointer-events: none;
  display: inline-flex;
}
.jn-field-icon-end {
  left: auto;
  right: 0.875rem;
}
.jn-field .jn-input {
  padding-left: 2.5rem;
}
.jn-field .jn-input.has-icon-end {
  padding-right: 2.5rem;
  padding-left: 1rem;
}

/* — label + helper — */
.jn-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--jn-text-muted);
  margin-bottom: var(--jn-s-2);
  letter-spacing: -0.005em;
}
.jn-help {
  font-size: 0.75rem;
  color: var(--jn-text-faint);
  margin-top: var(--jn-s-2);
}
.jn-error {
  font-size: 0.75rem;
  color: var(--jn-danger);
  margin-top: var(--jn-s-2);
  display: flex;
  align-items: center;
  gap: 4px;
}

.jn-input[aria-invalid="true"],
.jn-textarea[aria-invalid="true"] {
  border-color: var(--jn-danger);
}
.jn-input[aria-invalid="true"]:focus,
.jn-textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px var(--jn-danger-2);
}

/* — checkbox / radio — */
.jn-check, .jn-radio {
  appearance: none;
  -webkit-appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  background: var(--jn-ink-3);
  border: 1.5px solid var(--jn-border-strong);
  flex-shrink: 0;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition:
    background-color var(--jn-t-fast),
    border-color var(--jn-t-fast),
    box-shadow var(--jn-t-fast);
}
.jn-check { border-radius: 5px; }
.jn-radio { border-radius: 50%; }

.jn-check:checked, .jn-radio:checked {
  background: var(--jn-blue-5);
  border-color: var(--jn-blue-5);
}
.jn-check:checked::before {
  content: "";
  width: 0.625rem;
  height: 0.625rem;
  background: white;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.jn-radio:checked::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: white;
}
.jn-check:focus-visible, .jn-radio:focus-visible {
  box-shadow: 0 0 0 3px rgba(184, 188, 200,0.4);
}

/* — toggle (switch) — */
.jn-toggle {
  position: relative;
  display: inline-block;
  width: 2.5rem;
  height: 1.375rem;
  flex-shrink: 0;
}
.jn-toggle input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.jn-toggle-track {
  position: absolute;
  inset: 0;
  background: var(--jn-ink-6);
  border-radius: var(--jn-r-full);
  transition: background-color var(--jn-t-fast);
  cursor: pointer;
}
.jn-toggle-track::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.375rem - 4px);
  height: calc(1.375rem - 4px);
  background: white;
  border-radius: 50%;
  transition: transform var(--jn-t-base) var(--jn-ease-spring);
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.jn-toggle input:checked + .jn-toggle-track {
  background: var(--jn-blue-5);
}
.jn-toggle input:checked + .jn-toggle-track::before {
  transform: translateX(calc(2.5rem - 1.375rem));
}
.jn-toggle input:focus-visible + .jn-toggle-track {
  box-shadow: 0 0 0 3px rgba(184, 188, 200,0.4);
}

/* — search input — */
.jn-search {
  position: relative;
}
.jn-search .jn-input {
  padding-left: 2.5rem;
  background: var(--jn-ink-2);
}
.jn-search-icon {
  position: absolute;
  top: 50%;
  left: 0.875rem;
  transform: translateY(-50%);
  color: var(--jn-text-dim);
  pointer-events: none;
}
.jn-search-clear {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--jn-text-faint);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background-color var(--jn-t-fast), color var(--jn-t-fast);
}
.jn-search-clear:hover { background: var(--jn-ink-5); color: var(--jn-text); }

/* ==========================================================================
   8. MODALS / OVERLAYS
   ========================================================================== */
.jn-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,5,9,0.78);
  backdrop-filter: blur(var(--jn-blur-3));
  -webkit-backdrop-filter: blur(var(--jn-blur-3));
  z-index: var(--jn-z-overlay);
  display: grid;
  place-items: center;
  padding: var(--jn-s-4);
  animation: jn-fade-in var(--jn-t-base) var(--jn-ease-out);
}

@starting-style {
  .jn-overlay { opacity: 0; }
}

.jn-modal {
  position: relative;
  width: 100%;
  max-width: 32rem;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  background: var(--jn-ink-3);
  border: 1px solid var(--jn-border-strong);
  border-radius: var(--jn-r-5);
  padding: var(--jn-s-7);
  box-shadow: var(--jn-shadow-5);
  animation: jn-scale-in var(--jn-t-base) var(--jn-ease-out-strong);
}
.jn-modal-sm { max-width: 24rem; }
.jn-modal-md { max-width: 32rem; }
.jn-modal-lg { max-width: 48rem; }
.jn-modal-xl { max-width: 64rem; }
.jn-modal-full { max-width: 90vw; max-height: 90dvh; }

.jn-modal-close {
  position: absolute;
  top: var(--jn-s-3);
  right: var(--jn-s-3);
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--jn-ink-5);
  color: var(--jn-text-muted);
  border: 0;
  cursor: pointer;
  transition: background-color var(--jn-t-fast), color var(--jn-t-fast);
}
.jn-modal-close:hover { background: var(--jn-ink-6); color: var(--jn-text); }

.jn-modal-head {
  margin-bottom: var(--jn-s-5);
}
.jn-modal-title {
  font-family: var(--jn-font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--jn-s-2);
}
.jn-modal-sub {
  font-size: 0.9375rem;
  color: var(--jn-text-muted);
  line-height: 1.55;
}
.jn-modal-body { font-size: 0.9375rem; color: var(--jn-text-muted); line-height: 1.55; }
.jn-modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--jn-s-3);
  margin-top: var(--jn-s-6);
}

/* — drawer — */
.jn-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(360px, 86vw);
  background: var(--jn-ink-3);
  border-right: 1px solid var(--jn-border);
  box-shadow: var(--jn-shadow-4);
  z-index: var(--jn-z-drawer);
  transform: translateX(-100%);
  transition: transform var(--jn-t-slow) var(--jn-ease-out-strong);
  overflow-y: auto;
}
.jn-drawer.is-open { transform: translateX(0); }
.jn-drawer-right {
  left: auto;
  right: 0;
  border-right: 0;
  border-left: 1px solid var(--jn-border);
  transform: translateX(100%);
}
.jn-drawer-right.is-open { transform: translateX(0); }

/* — popover / tooltip — */
.jn-popover {
  position: absolute;
  background: var(--jn-ink-5);
  border: 1px solid var(--jn-border-strong);
  border-radius: var(--jn-r-3);
  padding: var(--jn-s-3) var(--jn-s-4);
  font-size: 0.8125rem;
  color: var(--jn-text-muted);
  box-shadow: var(--jn-shadow-3);
  animation: jn-fade-in-up var(--jn-t-fast) var(--jn-ease-out);
  z-index: var(--jn-z-modal);
  max-width: 16rem;
}

.jn-tooltip {
  position: relative;
}
.jn-tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--jn-ink-7);
  color: white;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--jn-t-fast), transform var(--jn-t-fast);
  z-index: var(--jn-z-modal);
}
.jn-tooltip:hover::after, .jn-tooltip:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* — toast host — */
.jn-toast-host {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  right: max(1rem, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  gap: var(--jn-s-2);
  z-index: var(--jn-z-toast);
  pointer-events: none;
}
.jn-toast {
  pointer-events: auto;
  background: var(--jn-ink-5);
  color: var(--jn-text);
  border: 1px solid var(--jn-border-strong);
  border-left: 3px solid var(--jn-blue-6);
  border-radius: var(--jn-r-3);
  padding: var(--jn-s-3) var(--jn-s-4);
  font-size: 0.875rem;
  box-shadow: var(--jn-shadow-3);
  max-width: 22rem;
  animation: jn-fade-in-up var(--jn-t-base) var(--jn-ease-out-strong);
  transition: opacity var(--jn-t-fast), transform var(--jn-t-fast);
}
.jn-toast.is-success { border-left-color: var(--jn-success); }
.jn-toast.is-danger  { border-left-color: var(--jn-danger); }
.jn-toast.is-warning { border-left-color: var(--jn-warning); }
.jn-toast.is-orange  { border-left-color: var(--jn-orange); }

/* ==========================================================================
   9. BADGES / PILLS / CHIPS
   ========================================================================== */
.jn-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--jn-ink-5);
  color: var(--jn-text-muted);
  border: 1px solid var(--jn-border);
  border-radius: var(--jn-r-full);
  line-height: 1.4;
  white-space: nowrap;
}

.jn-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.jn-badge-blue    { background: rgba(190, 194, 205,0.12);  color: var(--jn-blue-9);    border-color: rgba(190, 194, 205,0.3); }
.jn-badge-orange  { background: rgba(184, 188, 200,0.12);  color: var(--jn-orange-soft); border-color: rgba(184, 188, 200,0.3); }
.jn-badge-success { background: var(--jn-success-2);    color: var(--jn-success);   border-color: rgba(61,214,140,0.3); }
.jn-badge-danger  { background: var(--jn-danger-2);     color: var(--jn-danger);    border-color: rgba(255,90,90,0.3); }
.jn-badge-warning { background: var(--jn-warning-2);    color: var(--jn-warning);   border-color: rgba(214, 218, 227,0.3); }
.jn-badge-glass   { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); backdrop-filter: blur(8px); }

.jn-badge-gradient {
  background: linear-gradient(135deg, var(--jn-blue-5), var(--jn-iri-violet));
  color: white;
  border-color: transparent;
}

.jn-badge-outline { background: transparent; }

.jn-badge-lg {
  padding: 4px 12px;
  font-size: 0.75rem;
}

/* — pill (with bg) — */
.jn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--jn-ink-4);
  border: 1px solid var(--jn-border);
  border-radius: var(--jn-r-full);
  font-size: 0.8125rem;
  color: var(--jn-text-muted);
}
.jn-pill-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jn-success);
  box-shadow: 0 0 0 0 rgba(61,214,140,0.5);
  animation: jn-pulse-dot 1.6s ease-in-out infinite;
}

.jn-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--jn-ink-5);
  color: var(--jn-text-muted);
  border-radius: var(--jn-r-2);
  cursor: pointer;
  transition: background-color var(--jn-t-fast), color var(--jn-t-fast);
}
.jn-chip:hover { background: var(--jn-ink-6); color: var(--jn-text); }
.jn-chip.is-active { background: var(--jn-blue-5); color: white; }
.jn-chip-remove {
  margin-left: 2px;
  width: 14px; height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.6;
}
.jn-chip-remove:hover { opacity: 1; background: rgba(255,255,255,0.1); }

.jn-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  font-family: var(--jn-font-mono);
  font-size: 0.6875rem;
  background: var(--jn-ink-6);
  color: var(--jn-blue-9);
  border-radius: 3px;
  border: 1px solid var(--jn-border);
}

/* ==========================================================================
   10. NAVIGATION
   ========================================================================== */
.jn-nav {
  position: sticky;
  top: 0;
  z-index: var(--jn-z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--jn-s-5);
  padding: var(--jn-s-4) clamp(1rem, 4vw, 2.5rem);
  background: rgba(6,8,13,0.7);
  backdrop-filter: blur(var(--jn-blur-3)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--jn-blur-3)) saturate(180%);
  border-bottom: 1px solid var(--jn-border);
  transition: background-color var(--jn-t-base);
}
.jn-nav.is-scrolled {
  background: rgba(6,8,13,0.85);
  border-bottom-color: var(--jn-border-strong);
}

.jn-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--jn-s-3);
  font-family: var(--jn-font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--jn-text);
}
.jn-nav-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--jn-ink-0);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.jn-nav-brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.jn-nav-brand-mark::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 50% 60%, var(--jn-orange-glow), transparent 60%);
  filter: blur(10px);
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

.jn-nav-links {
  display: flex;
  align-items: center;
  gap: var(--jn-s-1);
}
.jn-nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--jn-text-muted);
  border-radius: var(--jn-r-2);
  transition: color var(--jn-t-fast);
}
.jn-nav-link:hover { color: var(--jn-text); }
.jn-nav-link.is-active { color: var(--jn-text); }
.jn-nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--jn-blue-7), var(--jn-orange));
  border-radius: 999px;
}

.jn-nav-cta { display: inline-flex; gap: var(--jn-s-2); align-items: center; }

@media (max-width: 768px) {
  .jn-nav-links { display: none; }
}

/* — sidebar nav — */
.jn-sidenav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--jn-s-3);
}
.jn-sidenav-item {
  display: flex;
  align-items: center;
  gap: var(--jn-s-3);
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--jn-text-muted);
  border-radius: var(--jn-r-2);
  cursor: pointer;
  transition:
    background-color var(--jn-t-fast),
    color var(--jn-t-fast);
}
.jn-sidenav-item:hover {
  background: var(--jn-ink-5);
  color: var(--jn-text);
}
.jn-sidenav-item.is-active {
  background: rgba(190, 194, 205,0.12);
  color: var(--jn-text);
  position: relative;
}
.jn-sidenav-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--jn-orange);
  border-radius: 0 2px 2px 0;
}

/* — breadcrumbs — */
.jn-crumbs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--jn-text-faint);
}
.jn-crumbs a {
  color: var(--jn-text-faint);
  transition: color var(--jn-t-fast);
}
.jn-crumbs a:hover { color: var(--jn-text); }
.jn-crumbs-sep::before {
  content: "/";
  color: var(--jn-text-dim);
  margin-inline: 4px;
}

/* — tabs — */
.jn-tabs {
  position: relative;
  display: inline-flex;
  border-bottom: 1px solid var(--jn-border);
  gap: var(--jn-s-2);
}
.jn-tab {
  position: relative;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--jn-text-faint);
  cursor: pointer;
  background: none;
  border: 0;
  transition: color var(--jn-t-fast);
}
.jn-tab:hover { color: var(--jn-text-muted); }
.jn-tab.is-active { color: var(--jn-text); }
.jn-tab.is-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--jn-orange);
  border-radius: 2px 2px 0 0;
  animation: jn-fade-in var(--jn-t-fast) var(--jn-ease-out);
}

/* — pagination — */
.jn-pagination {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.jn-pagination-item {
  min-width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--jn-text-muted);
  background: transparent;
  border-radius: var(--jn-r-2);
  cursor: pointer;
  transition: background-color var(--jn-t-fast), color var(--jn-t-fast);
}
.jn-pagination-item:hover { background: var(--jn-ink-5); color: var(--jn-text); }
.jn-pagination-item.is-active {
  background: var(--jn-blue-5);
  color: white;
}

/* ==========================================================================
   11. ANIMATION LIBRARY (KEYFRAMES)
   ========================================================================== */

/* — pulse / breathe — */
@keyframes jn-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.05); }
}
@keyframes jn-pulse-soft {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.9; }
}
@keyframes jn-pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(61,214,140,0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(61,214,140,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,214,140,0); }
}
@keyframes jn-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

/* — float — */
@keyframes jn-float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes jn-float-x {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(8px); }
}
@keyframes jn-float-y-slow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-24px); }
}

/* — spin — */
@keyframes jn-spin { to { transform: rotate(360deg); } }
@keyframes jn-spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes jn-spin-reverse {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* — shimmer sweep — */
@keyframes jn-shimmer-sweep {
  0%   { background-position: -100% 0; opacity: 1; }
  100% { background-position: 200% 0; opacity: 0; }
}
@keyframes jn-text-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -100% center; }
}

/* — gradient pan — */
@keyframes jn-gradient-pan {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes jn-iridescent-pan {
  to { background-position: 220% center; }
}

/* — aurora drift — */
@keyframes jn-aurora-drift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  33%  { transform: translate3d(-4%, 3%, 0) rotate(2deg); }
  66%  { transform: translate3d(3%, -2%, 0) rotate(-1deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

/* — fade family — */
@keyframes jn-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes jn-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes jn-fade-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes jn-fade-in-down {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes jn-fade-in-left {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes jn-fade-in-right {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* — scale — */
@keyframes jn-scale-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes jn-scale-out {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.94); }
}
@keyframes jn-pop-in {
  0%   { opacity: 0; transform: scale(0.7); }
  60%  { opacity: 1; transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* — flip — */
@keyframes jn-flip-in {
  from { opacity: 0; transform: rotateX(-90deg); transform-origin: top; }
  to   { opacity: 1; transform: rotateX(0deg); }
}
@keyframes jn-flip-y {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(180deg); }
}

/* — glitch — */
@keyframes jn-glitch-x {
  0%, 100% { transform: translateX(0); }
  20%  { transform: translateX(-2px); }
  40%  { transform: translateX(2px); }
  60%  { transform: translateX(-1px); }
  80%  { transform: translateX(1px); }
}
@keyframes jn-glitch-y {
  0%, 100% { transform: translateY(0); }
  25%  { transform: translateY(-1px); }
  75%  { transform: translateY(1px); }
}

/* — noise grain — */
@keyframes jn-noise-grain {
  0%, 100% { transform: translate(0, 0); }
  10%  { transform: translate(-2%, -2%); }
  20%  { transform: translate(2%, 2%); }
  30%  { transform: translate(-1%, 1%); }
  40%  { transform: translate(1%, -3%); }
  50%  { transform: translate(-3%, 2%); }
  60%  { transform: translate(3%, -1%); }
  70%  { transform: translate(-1%, -2%); }
  80%  { transform: translate(2%, 3%); }
  90%  { transform: translate(-2%, 1%); }
}

/* — marquee — */
@keyframes jn-marquee-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes jn-marquee-x-reverse {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* — border conic — */
@keyframes jn-border-conic {
  to { --angle: 360deg; }
}

/* — orange glow pulse — */
@keyframes jn-glow-pulse-orange {
  0%, 100% {
    opacity: 0.5;
    filter: blur(20px);
  }
  50% {
    opacity: 0.85;
    filter: blur(28px);
  }
}
@keyframes jn-glow-pulse-blue {
  0%, 100% { opacity: 0.4; filter: blur(20px); }
  50%      { opacity: 0.75; filter: blur(28px); }
}

/* — caret blink — */
@keyframes jn-caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* — bounce — */
@keyframes jn-bounce-soft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* — wave — */
@keyframes jn-wave {
  0%, 100% { transform: translateY(0); }
  25%  { transform: translateY(-3px); }
  75%  { transform: translateY(3px); }
}

/* — typing dots — */
@keyframes jn-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-6px); opacity: 1; }
}

/* — stretch — */
@keyframes jn-stretch-x {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* — orbit — */
@keyframes jn-orbit {
  from { transform: rotate(0deg) translateX(40px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(40px) rotate(-360deg); }
}

/* — gradient sweep — */
@keyframes jn-sweep-up {
  from { opacity: 0; transform: translateY(40px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* — utility classes — */
.jn-anim-pulse        { animation: jn-pulse 2s ease-in-out infinite; }
.jn-anim-pulse-soft   { animation: jn-pulse-soft 3s ease-in-out infinite; }
.jn-anim-breathe      { animation: jn-breathe 4s ease-in-out infinite; }
.jn-anim-float        { animation: jn-float-y 5s ease-in-out infinite; }
.jn-anim-float-slow   { animation: jn-float-y-slow 7s ease-in-out infinite; }
.jn-anim-spin         { animation: jn-spin 12s linear infinite; }
.jn-anim-spin-slow    { animation: jn-spin-slow 30s linear infinite; }
.jn-anim-glow-orange  { animation: jn-glow-pulse-orange 3s ease-in-out infinite; }
.jn-anim-glow-blue    { animation: jn-glow-pulse-blue 3.5s ease-in-out infinite; }
.jn-anim-fade-in      { animation: jn-fade-in 400ms var(--jn-ease-out) backwards; }
.jn-anim-fade-up      { animation: jn-fade-in-up 500ms var(--jn-ease-out) backwards; }
.jn-anim-pop-in       { animation: jn-pop-in 500ms var(--jn-ease-spring) backwards; }
.jn-anim-shimmer      { animation: jn-text-shimmer 3s var(--jn-ease-in-out) infinite; }

@media (prefers-reduced-motion: reduce) {
  .jn-anim-pulse, .jn-anim-pulse-soft, .jn-anim-breathe,
  .jn-anim-float, .jn-anim-float-slow, .jn-anim-spin, .jn-anim-spin-slow,
  .jn-anim-glow-orange, .jn-anim-glow-blue, .jn-anim-shimmer { animation: none !important; }
}

/* — staggers — */
.jn-stagger > * { animation-delay: calc(var(--i, 0) * 60ms); }
.jn-delay-1  { animation-delay: 60ms; }
.jn-delay-2  { animation-delay: 120ms; }
.jn-delay-3  { animation-delay: 180ms; }
.jn-delay-4  { animation-delay: 240ms; }
.jn-delay-5  { animation-delay: 300ms; }
.jn-delay-6  { animation-delay: 360ms; }

/* ==========================================================================
   12. SCROLL-TRIGGERED REVEAL
   ========================================================================== */
.jn-reveal,
.jn-reveal-up,
.jn-reveal-down,
.jn-reveal-left,
.jn-reveal-right,
.jn-reveal-fade,
.jn-reveal-scale {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity var(--jn-t-slow) var(--jn-ease-out),
    transform var(--jn-t-slow) var(--jn-ease-out-strong),
    filter var(--jn-t-slow) var(--jn-ease-out);
}
.jn-reveal-up    { transform: translateY(28px); }
.jn-reveal-down  { transform: translateY(-28px); }
.jn-reveal-left  { transform: translateX(-28px); }
.jn-reveal-right { transform: translateX(28px); }
.jn-reveal-fade  { /* opacity only */ }
.jn-reveal-scale { transform: scale(0.94); }
.jn-reveal       { transform: translateY(20px) scale(0.98); filter: blur(4px); }

.jn-reveal.in-view,
.jn-reveal-up.in-view,
.jn-reveal-down.in-view,
.jn-reveal-left.in-view,
.jn-reveal-right.in-view,
.jn-reveal-fade.in-view,
.jn-reveal-scale.in-view {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .jn-reveal,
  .jn-reveal-up,
  .jn-reveal-down,
  .jn-reveal-left,
  .jn-reveal-right,
  .jn-reveal-fade,
  .jn-reveal-scale {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* ==========================================================================
   13. GLASS / BLUR
   ========================================================================== */
.jn-glass {
  background: rgba(15,18,28,0.55);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(var(--jn-blur-3)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--jn-blur-3)) saturate(160%);
}
.jn-glass-strong {
  background: rgba(15,18,28,0.75);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(var(--jn-blur-4)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--jn-blur-4)) saturate(180%);
}
.jn-glass-light {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(var(--jn-blur-2));
  -webkit-backdrop-filter: blur(var(--jn-blur-2));
}
.jn-glass-frosted {
  position: relative;
  background: rgba(15,18,28,0.55);
  backdrop-filter: blur(var(--jn-blur-4)) saturate(180%);
}
.jn-glass-frosted::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='2' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4' /%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  border-radius: inherit;
}

/* ==========================================================================
   14. AURORA / MESH BACKGROUNDS
   ========================================================================== */
.jn-bg-aurora {
  position: relative;
  isolation: isolate;
}
.jn-bg-aurora::before,
.jn-bg-aurora::after {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: -1;
  filter: blur(80px);
}
.jn-bg-aurora::before {
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(190, 194, 205,0.35), transparent 60%),
    radial-gradient(ellipse 35% 50% at 80% 20%, rgba(106,77,255,0.25), transparent 60%);
  animation: jn-aurora-drift 18s ease-in-out infinite;
}
.jn-bg-aurora::after {
  background:
    radial-gradient(ellipse 40% 35% at 70% 70%, rgba(184, 188, 200,0.18), transparent 70%),
    radial-gradient(ellipse 30% 30% at 30% 80%, rgba(94,224,255,0.15), transparent 70%);
  animation: jn-aurora-drift 24s ease-in-out infinite reverse;
}

.jn-bg-mesh {
  position: relative;
  isolation: isolate;
}
.jn-bg-mesh::before {
  content: "";
  position: absolute;
  inset: -5%;
  z-index: -1;
  background:
    radial-gradient(circle at var(--mesh-x, 30%) 20%, rgba(58,120,255,0.25), transparent 50%),
    radial-gradient(circle at calc(100% - var(--mesh-x, 30%)) 80%, rgba(106,77,255,0.18), transparent 50%);
  filter: blur(40px);
  pointer-events: none;
  transition: background-position var(--jn-t-glacial) var(--jn-ease-out);
}

.jn-bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  position: relative;
}
.jn-bg-grid-fade {
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at center, black, transparent 90%);
          mask-image: radial-gradient(ellipse 60% 60% at center, black, transparent 90%);
}

.jn-bg-noise {
  position: relative;
}
.jn-bg-noise::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.7' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.3' /%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.jn-bg-stars {
  position: relative;
  background-color: var(--jn-ink-0);
}
.jn-bg-stars::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 25% 30%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 40% 80%, rgba(132,179,255,0.3), transparent),
    radial-gradient(1px 1px at 10% 50%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.4), transparent);
  pointer-events: none;
}

/* — orb backdrop (orange) — */
.jn-bg-orb-orange {
  position: relative;
}
.jn-bg-orb-orange::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 60%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--jn-orange-glow), transparent 70%);
  filter: blur(60px);
  opacity: 0.65;
  pointer-events: none;
  z-index: -1;
  animation: jn-glow-pulse-orange 4s ease-in-out infinite;
}

/* ==========================================================================
   15. CURSOR EFFECTS
   ========================================================================== */
@media (pointer: fine) {
  /* Custom cursor disabled — keep system cursor everywhere. */
  .jn-custom-cursor { cursor: auto; }
  .jn-cursor-dot, .jn-cursor-glow { display: none !important; }
  .jn-cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    pointer-events: none;
    z-index: var(--jn-z-cursor);
    transform: translate(-50%, -50%);
    will-change: transform;
    mix-blend-mode: difference;
  }
  .jn-cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(190, 194, 205,0.5);
    background: radial-gradient(circle, rgba(190, 194, 205,0.15), transparent 70%);
    pointer-events: none;
    z-index: calc(var(--jn-z-cursor) - 1);
    transform: translate(-50%, -50%);
    transition:
      width var(--jn-t-base) var(--jn-ease-out),
      height var(--jn-t-base) var(--jn-ease-out),
      border-color var(--jn-t-fast),
      background var(--jn-t-fast);
    will-change: transform;
  }
  .jn-cursor-glow.is-link {
    width: 64px;
    height: 64px;
    border-color: var(--jn-orange);
    background: radial-gradient(circle, rgba(184, 188, 200,0.2), transparent 70%);
  }
}
@media (pointer: coarse) {
  .jn-cursor-dot, .jn-cursor-glow { display: none; }
}

/* — magnetic helper — */
[data-magnetic] {
  display: inline-block;
  transition: transform var(--jn-t-base) var(--jn-ease-out);
}
@media (pointer: coarse) {
  [data-magnetic] { transform: none !important; }
}

/* ==========================================================================
   16. PAGE: LANDING HERO
   ========================================================================== */
.jn-hero {
  position: relative;
  min-height: 92dvh;
  display: grid;
  align-items: center;
  padding-block: clamp(4rem, 10vw, 8rem);
  isolation: isolate;
  overflow: hidden;
}

.jn-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.jn-hero-bg::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 50% 40% at 20% 25%, rgba(190, 194, 205,0.45), transparent 60%),
    radial-gradient(ellipse 35% 45% at 75% 30%, rgba(106,77,255,0.30), transparent 60%),
    radial-gradient(ellipse 30% 30% at 60% 80%, rgba(184, 188, 200,0.18), transparent 65%),
    radial-gradient(ellipse 25% 25% at 25% 75%, rgba(94,224,255,0.15), transparent 70%);
  filter: blur(60px);
  animation: jn-aurora-drift 22s ease-in-out infinite;
}

.jn-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, black, transparent 95%);
          mask-image: radial-gradient(ellipse 70% 70% at center, black, transparent 95%);
}

.jn-hero-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  border: 1px dashed rgba(190, 194, 205,0.12);
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  animation: jn-spin-slow 60s linear infinite;
}
.jn-hero-orbit::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--jn-orange);
  box-shadow: 0 0 20px var(--jn-orange-glow);
  transform: translate(-50%, -50%);
}
.jn-hero-orbit-2 {
  width: 1200px;
  height: 1200px;
  border-color: rgba(184, 188, 200,0.06);
  animation: jn-spin-reverse 90s linear infinite;
}

.jn-hero-inner {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
  padding-inline: 1rem;
}

.jn-hero-mark {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--jn-s-6);
  border-radius: 24px;
  background: var(--jn-ink-0);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 20px 60px rgba(0,0,0,0.6),
    0 0 80px var(--jn-orange-glow);
  animation: jn-breathe 5s ease-in-out infinite;
}
.jn-hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jn-hero-mark::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 50% 60%, var(--jn-orange-glow), transparent 60%);
  filter: blur(20px);
  animation: jn-glow-pulse-orange 4s ease-in-out infinite;
  pointer-events: none;
}

.jn-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--jn-r-full);
  font-size: 0.8125rem;
  color: var(--jn-text-muted);
  margin-bottom: var(--jn-s-6);
  backdrop-filter: blur(12px);
}
.jn-hero-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jn-success);
  box-shadow: 0 0 10px rgba(61,214,140,0.6);
  animation: jn-pulse-dot 1.8s ease-in-out infinite;
}

.jn-hero-title {
  font-family: var(--jn-font-display);
  font-size: clamp(2.5rem, 7vw + 1rem, 7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 var(--jn-s-5);
  text-wrap: balance;
}
.jn-hero-title .jn-hero-line { display: block; }
.jn-hero-title-grad {
  background: linear-gradient(135deg,
    var(--jn-iri-cyan) 0%,
    var(--jn-iri-cobalt) 30%,
    var(--jn-iri-violet) 60%,
    var(--jn-orange-soft) 100%);
  background-size: 240% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: jn-iridescent-pan 9s linear infinite;
  display: inline-block;
}

.jn-hero-sub {
  font-size: clamp(1rem, 1.2vw + 0.6rem, 1.25rem);
  color: var(--jn-text-muted);
  line-height: 1.55;
  max-width: 36rem;
  margin: 0 auto var(--jn-s-7);
  text-wrap: pretty;
}
.jn-hero-sub strong {
  color: var(--jn-text);
  font-weight: 600;
}

.jn-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--jn-s-3);
  flex-wrap: wrap;
  justify-content: center;
}

.jn-hero-foot {
  margin-top: var(--jn-s-8);
  display: inline-flex;
  align-items: center;
  gap: var(--jn-s-4);
  font-size: 0.75rem;
  color: var(--jn-text-faint);
}
.jn-hero-foot-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.jn-hero-foot-item svg { color: var(--jn-blue-7); }

/* — scroll hint — */
.jn-hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  color: var(--jn-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--jn-s-2);
  animation: jn-fade-in 1.2s 0.8s var(--jn-ease-out) backwards;
}
.jn-hero-scroll::after {
  content: "";
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--jn-text-faint), transparent);
  animation: jn-scroll-hint 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes jn-scroll-hint {
  0%, 100% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%      { transform: scaleY(1); opacity: 1; }
  100%     { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* — particle dots (CSS-only via box-shadow) — */
.jn-hero-particles {
  position: absolute;
  top: 50%; left: 50%;
  width: 1px; height: 1px;
  pointer-events: none;
  z-index: -1;
  background: white;
  border-radius: 50%;
  box-shadow:
    -300px -200px white, -250px 100px rgba(255,255,255,0.5),
    -200px -300px rgba(132,179,255,0.6), -150px 200px white,
    -100px -100px rgba(94,224,255,0.5), -50px 300px rgba(255,255,255,0.4),
    50px -250px white, 100px 150px rgba(132,179,255,0.5),
    150px -150px rgba(255,255,255,0.6), 200px 250px rgba(184, 188, 200,0.7),
    250px -50px white, 300px 200px rgba(94,224,255,0.4),
    -350px 50px rgba(255,255,255,0.4), 350px 100px white,
    -120px -250px rgba(132,179,255,0.5), 120px 320px rgba(255,255,255,0.3),
    -380px -150px rgba(94,224,255,0.4), 380px -100px white,
    -50px -380px rgba(255,255,255,0.3), 50px 400px rgba(132,179,255,0.4),
    -200px 380px rgba(255,255,255,0.4), 200px -380px rgba(184, 188, 200,0.3);
  animation: jn-float-y-slow 12s ease-in-out infinite;
}

/* — mobile hero — */
@media (max-width: 768px) {
  .jn-hero { min-height: 86dvh; padding-block: clamp(3rem, 8vw, 5rem); }
  .jn-hero-mark { width: 76px; height: 76px; border-radius: 18px; }
  .jn-hero-orbit { width: 420px; height: 420px; }
  .jn-hero-orbit-2 { width: 620px; height: 620px; }
  .jn-hero-foot { flex-wrap: wrap; justify-content: center; }
}

/* ==========================================================================
   17. PAGE: LANDING — FEATURES
   ========================================================================== */
.jn-features {
  position: relative;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.jn-features-head {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto var(--jn-s-10);
}
.jn-features-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jn-orange);
  margin-bottom: var(--jn-s-3);
}
.jn-features-title {
  font-family: var(--jn-font-display);
  font-size: clamp(1.75rem, 3.5vw + 1rem, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 var(--jn-s-4);
}
.jn-features-sub {
  font-size: 1.0625rem;
  color: var(--jn-text-muted);
  line-height: 1.55;
}

.jn-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--jn-s-5);
  max-width: var(--jn-content-max);
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
@media (max-width: 1024px) { .jn-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .jn-features-grid { grid-template-columns: 1fr; } }

.jn-feature {
  position: relative;
  padding: var(--jn-s-7) var(--jn-s-6);
  background: var(--jn-ink-3);
  border: 1px solid var(--jn-border);
  border-radius: var(--jn-r-5);
  overflow: hidden;
  transition: transform var(--jn-t-base) var(--jn-ease-out), border-color var(--jn-t-base);
  isolation: isolate;
}
.jn-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(190, 194, 205,0.12),
    transparent 40%);
  opacity: 0;
  transition: opacity var(--jn-t-base);
  pointer-events: none;
  z-index: -1;
}
.jn-feature:hover {
  transform: translateY(-3px);
  border-color: var(--jn-border-strong);
}
.jn-feature:hover::after { opacity: 1; }

.jn-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--jn-r-3);
  background:
    linear-gradient(135deg, rgba(190, 194, 205,0.15), rgba(106,77,255,0.15));
  border: 1px solid rgba(190, 194, 205,0.2);
  color: var(--jn-blue-7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--jn-s-4);
  position: relative;
  isolation: isolate;
}
.jn-feature-icon::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(190, 194, 205,0.3), transparent 70%);
  filter: blur(8px);
  opacity: 0;
  transition: opacity var(--jn-t-base);
  z-index: -1;
}
.jn-feature:hover .jn-feature-icon::before { opacity: 1; }
.jn-feature:hover .jn-feature-icon { animation: jn-breathe 1.4s ease-in-out infinite; }

.jn-feature-icon-orange {
  background: linear-gradient(135deg, rgba(184, 188, 200,0.18), rgba(255,178,122,0.12));
  border-color: rgba(184, 188, 200,0.3);
  color: var(--jn-orange);
}
.jn-feature-icon-orange::before {
  background: radial-gradient(circle, rgba(184, 188, 200,0.4), transparent 70%);
}

.jn-feature-title {
  font-family: var(--jn-font-display);
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 0 0 var(--jn-s-2);
}
.jn-feature-desc {
  font-size: 0.9375rem;
  color: var(--jn-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* — large feature card (spans 2 cols) — */
.jn-feature-wide {
  grid-column: span 2;
}
@media (max-width: 1024px) { .jn-feature-wide { grid-column: span 2; } }
@media (max-width: 640px)  { .jn-feature-wide { grid-column: span 1; } }

/* ==========================================================================
   18. LANDING — MARQUEE
   ========================================================================== */
.jn-marquee {
  position: relative;
  overflow: hidden;
  padding: var(--jn-s-7) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.jn-marquee-track {
  display: flex;
  width: max-content;
  gap: var(--jn-s-7);
  animation: jn-marquee-x 40s linear infinite;
}
.jn-marquee-track:hover { animation-play-state: paused; }
.jn-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.9375rem;
  color: var(--jn-text-faint);
  white-space: nowrap;
  border: 1px solid var(--jn-border);
  border-radius: var(--jn-r-full);
  background: rgba(255,255,255,0.02);
}
.jn-marquee-item-strong {
  color: var(--jn-text);
  border-color: var(--jn-border-strong);
  background: var(--jn-ink-4);
}

@media (prefers-reduced-motion: reduce) {
  .jn-marquee-track { animation: none; }
}

/* ==========================================================================
   19. PAGE: PRICING
   ========================================================================== */
.jn-pricing {
  padding-block: clamp(3rem, 8vw, 7rem);
}
.jn-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--jn-s-5);
  max-width: var(--jn-content-max);
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  align-items: stretch;
}
@media (max-width: 880px) { .jn-pricing-grid { grid-template-columns: 1fr; max-width: 28rem; } }

.jn-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--jn-s-8);
  background: var(--jn-ink-3);
  border: 1px solid var(--jn-border);
  border-radius: var(--jn-r-5);
  overflow: hidden;
  isolation: isolate;
}
.jn-plan-popular {
  border-color: rgba(184, 188, 200,0.45);
  background:
    linear-gradient(180deg, rgba(184, 188, 200,0.05), transparent 30%),
    var(--jn-ink-3);
}
.jn-plan-popular::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, var(--jn-orange-glow), transparent 70%);
  filter: blur(24px);
  opacity: 0.5;
  z-index: -1;
  animation: jn-glow-pulse-orange 3s ease-in-out infinite;
}
.jn-plan-popular .jn-plan-name {
  display: flex;
  align-items: center;
  gap: var(--jn-s-2);
}
.jn-plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--jn-orange);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--jn-r-full);
}

.jn-plan-name {
  font-family: var(--jn-font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 var(--jn-s-2);
  color: var(--jn-text-muted);
}
.jn-plan-price {
  font-family: var(--jn-font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--jn-s-1);
}
.jn-plan-price small {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--jn-text-faint);
  letter-spacing: -0.01em;
  margin-left: 4px;
}
.jn-plan-tagline {
  font-size: 0.875rem;
  color: var(--jn-text-faint);
  margin-bottom: var(--jn-s-6);
}

.jn-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--jn-s-7);
  display: flex;
  flex-direction: column;
  gap: var(--jn-s-3);
  flex: 1;
}
.jn-plan-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--jn-s-2);
  font-size: 0.875rem;
  color: var(--jn-text-muted);
  line-height: 1.4;
}
.jn-plan-feature svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--jn-blue-7);
}
.jn-plan-popular .jn-plan-feature svg { color: var(--jn-orange); }

.jn-plan-cta { width: 100%; }

/* ==========================================================================
   20. PAGE: CHAT SHELL
   ========================================================================== */

/* sidebar tweaks */
.app .sidebar {
  background: linear-gradient(180deg, var(--jn-ink-2), var(--jn-ink-3) 30%);
  border-right: 1px solid var(--jn-border);
  position: relative;
}

/* messages: re-style the bubbles */
.msg-user .bubble {
  background: linear-gradient(180deg, var(--jn-blue-5), var(--jn-blue-4)) !important;
  color: white !important;
  border: 1px solid rgba(106,162,255,0.45) !important;
  box-shadow: 0 4px 16px rgba(58,120,255,0.25), inset 0 1px 0 rgba(255,255,255,0.15) !important;
}

.msg-assistant .msg-body {
  position: relative;
}

/* composer */
.composer {
  background: var(--jn-ink-3) !important;
  border: 1px solid var(--jn-border-strong) !important;
  box-shadow: 0 0 0 1px transparent, var(--jn-shadow-3);
  transition:
    border-color var(--jn-t-base),
    box-shadow var(--jn-t-base);
}
.composer:focus-within {
  border-color: var(--jn-blue-6) !important;
  box-shadow:
    0 0 0 4px rgba(190, 194, 205,0.12),
    0 0 60px rgba(190, 194, 205,0.15),
    var(--jn-shadow-3);
}

/* send button */
.send-btn {
  background: linear-gradient(180deg, var(--jn-blue-6), var(--jn-blue-4)) !important;
  border: 1px solid rgba(106,162,255,0.4) !important;
  color: white !important;
  box-shadow: 0 4px 14px rgba(58,120,255,0.3), inset 0 1px 0 rgba(255,255,255,0.2) !important;
  transition: transform var(--jn-t-fast), box-shadow var(--jn-t-base);
}
.send-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(58,120,255,0.45); }
.send-btn:active { transform: translateY(0); }

/* voice button — orange glow when idle */
#voice-btn {
  position: relative;
  isolation: isolate;
}
#voice-btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(circle, var(--jn-orange-glow), transparent 70%);
  opacity: 0;
  filter: blur(8px);
  transition: opacity var(--jn-t-base);
  z-index: -1;
}
#voice-btn:hover::before { opacity: 0.8; animation: jn-glow-pulse-orange 2s ease-in-out infinite; }

/* voice overlay orb refinement */
.voice-orb {
  background:
    radial-gradient(circle at 32% 30%,
      var(--jn-iri-cyan) 0%,
      var(--jn-blue-5) 40%,
      var(--jn-blue-1) 75%,
      var(--jn-ink-0) 100%) !important;
  box-shadow:
    inset 0 0 50px rgba(255,255,255,0.18),
    0 0 80px rgba(190, 194, 205,0.4),
    0 0 160px rgba(184, 188, 200,0.18) !important;
}

/* persona modal text */
.persona-text {
  background: var(--jn-ink-2) !important;
  border-color: var(--jn-border-strong) !important;
}
.persona-text:focus {
  border-color: var(--jn-blue-6) !important;
  box-shadow: 0 0 0 4px rgba(190, 194, 205,0.15) !important;
}

/* memories modal */
.memories-card { max-width: 520px; }
.memories-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin: 8px 0 14px;
  background: var(--jn-ink-2);
  border: 1px solid var(--jn-border-strong);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: var(--jn-text);
}
.memories-toggle input[type="checkbox"] {
  appearance: none;
  width: 36px;
  height: 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  position: relative;
  cursor: pointer;
  transition: background 0.18s ease;
  flex-shrink: 0;
}
.memories-toggle input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}
.memories-toggle input[type="checkbox"]:checked { background: var(--jn-blue-6); }
.memories-toggle input[type="checkbox"]:checked::after { transform: translateX(16px); }
.memories-list {
  max-height: 280px;
  overflow-y: auto;
  margin: 0 0 14px;
  border: 1px solid var(--jn-border-strong);
  border-radius: 12px;
  background: var(--jn-ink-2);
}
.memories-list:empty::before {
  content: "No memories yet. Mention something about yourself — what you do, prefer, or are working on — and NxtNova will quietly note it.";
  display: block;
  padding: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}
.memories-list[data-disabled="1"]::before {
  content: "Memories are off. Toggle above to start collecting.";
}
.memory-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
  color: var(--jn-text);
}
.memory-row:last-child { border-bottom: none; }
.memory-row-text { flex: 1; line-height: 1.4; }
.memory-row-delete {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  width: 26px; height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.16s, background 0.16s;
}
.memory-row-delete:hover {
  color: #ff7676;
  background: rgba(255,80,80,0.10);
}

/* upgrade modal glow */
.upgrade-card {
  position: relative;
  isolation: isolate;
}
.upgrade-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, var(--jn-orange-glow-2), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}

/* sidebar conv items hover */
.conv-item {
  border-radius: var(--jn-r-2) !important;
  transition: background-color var(--jn-t-fast), transform var(--jn-t-fast) !important;
}
.conv-item:hover { background: rgba(190, 194, 205,0.06) !important; }
.conv-item.is-active {
  background: linear-gradient(90deg, rgba(184, 188, 200,0.08), transparent 60%) !important;
  position: relative;
}
.conv-item.is-active::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 6px; bottom: 6px;
  width: 2px;
  background: var(--jn-orange);
  border-radius: 0 2px 2px 0;
}

/* ==========================================================================
   21. PAGE: SHARE
   ========================================================================== */
.jn-share {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--jn-s-9) var(--jn-s-5) var(--jn-s-12);
}
.jn-share-head {
  position: relative;
  padding: var(--jn-s-6);
  background: var(--jn-ink-3);
  border: 1px solid var(--jn-border);
  border-radius: var(--jn-r-4);
  margin-bottom: var(--jn-s-7);
}
.jn-share-head h1 {
  font-family: var(--jn-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 var(--jn-s-2);
}
.jn-share-meta {
  display: flex;
  align-items: center;
  gap: var(--jn-s-3);
  font-size: 0.8125rem;
  color: var(--jn-text-faint);
}

.jn-share-msgs { display: flex; flex-direction: column; gap: var(--jn-s-4); }
.jn-share-msg {
  padding: var(--jn-s-5);
  background: var(--jn-ink-3);
  border: 1px solid var(--jn-border);
  border-radius: var(--jn-r-4);
}
.jn-share-msg.is-user {
  background: rgba(190, 194, 205,0.08);
  border-color: rgba(190, 194, 205,0.2);
}
.jn-share-msg .role {
  font-family: var(--jn-font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--jn-text-faint);
  margin-bottom: var(--jn-s-2);
}

.jn-share-cta {
  margin-top: var(--jn-s-9);
  text-align: center;
  padding: var(--jn-s-7);
  border-radius: var(--jn-r-5);
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(184, 188, 200,0.1), transparent 70%),
    var(--jn-ink-3);
  border: 1px solid var(--jn-border);
}

/* ==========================================================================
   22. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .jn-features-head { padding-inline: 1rem; }
}
@media (max-width: 768px) {
  .jn-section { padding-block: clamp(2.5rem, 7vw, 5rem); }
  .jn-features { padding-block: clamp(3rem, 7vw, 5rem); }
  .jn-features-grid { gap: var(--jn-s-4); padding-inline: 1rem; }
  .jn-feature { padding: var(--jn-s-5) var(--jn-s-5); }
  .jn-feature-icon { width: 36px; height: 36px; }
  .jn-pricing { padding-block: clamp(2.5rem, 7vw, 5rem); }
  .jn-plan { padding: var(--jn-s-6); }
  .jn-plan-price { font-size: 2.5rem; }
  .jn-modal { padding: var(--jn-s-5); border-radius: var(--jn-r-4); }
  .jn-modal-title { font-size: 1.125rem; }
}
@media (max-width: 480px) {
  .jn-hero { min-height: 80dvh; }
  .jn-hero-title { font-size: clamp(2rem, 11vw, 3rem); }
  .jn-hero-cta .jn-btn { width: 100%; }
  .jn-feature-title { font-size: 1rem; }
  .jn-features-eyebrow { font-size: 0.625rem; }
  .jn-toast { max-width: calc(100vw - 2rem); }
}

/* ==========================================================================
   23. PRINT
   ========================================================================== */
@media print {
  .jn-nav, .jn-hero-bg, .jn-hero-orbit, .jn-cursor-dot, .jn-cursor-glow,
  .jn-toast-host, .composer, #voice-overlay {
    display: none !important;
  }
  body, html {
    background: white !important;
    color: black !important;
  }
  .jn-card, .jn-plan, .jn-feature {
    border-color: #ddd !important;
    background: white !important;
    box-shadow: none !important;
  }
}

/* ==========================================================================
   24. ACCESSIBILITY
   ========================================================================== */
.jn-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* — focus rings (orange) — */
:focus-visible {
  outline-offset: 2px;
}
.jn-btn:focus-visible,
.jn-input:focus-visible,
.jn-textarea:focus-visible,
.jn-select:focus-visible {
  outline: none;
}

@media (prefers-contrast: more) {
  :root {
    --jn-text:        #ffffff;
    --jn-text-muted:  #ffffff;
    --jn-border:      rgba(255,255,255,0.3);
    --jn-border-strong: rgba(255,255,255,0.5);
  }
}

/* — global reduced motion override — */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   25. UTILITIES
   ========================================================================== */
.jn-glow-orange { box-shadow: 0 0 30px var(--jn-orange-glow); }
.jn-glow-blue   { box-shadow: 0 0 30px rgba(190, 194, 205,0.4); }
.jn-glow-cyan   { box-shadow: 0 0 30px rgba(94,224,255,0.35); }

.jn-rounded-1   { border-radius: var(--jn-r-1); }
.jn-rounded-2   { border-radius: var(--jn-r-2); }
.jn-rounded-3   { border-radius: var(--jn-r-3); }
.jn-rounded-4   { border-radius: var(--jn-r-4); }
.jn-rounded-5   { border-radius: var(--jn-r-5); }
.jn-rounded-6   { border-radius: var(--jn-r-6); }
.jn-rounded-full{ border-radius: var(--jn-r-full); }

.jn-bg-ink-1 { background: var(--jn-ink-1); }
.jn-bg-ink-2 { background: var(--jn-ink-2); }
.jn-bg-ink-3 { background: var(--jn-ink-3); }
.jn-bg-ink-4 { background: var(--jn-ink-4); }

.jn-border    { border: 1px solid var(--jn-border); }
.jn-border-t  { border-top: 1px solid var(--jn-border); }
.jn-border-b  { border-bottom: 1px solid var(--jn-border); }

.jn-cursor-pointer { cursor: pointer; }
.jn-cursor-help    { cursor: help; }

.jn-no-select { user-select: none; -webkit-user-select: none; }

/* — scroll progress bar — */
.jn-scroll-progress {
  position: fixed;
  top: 0; left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--jn-blue-7), var(--jn-orange));
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  z-index: var(--jn-z-toast);
  pointer-events: none;
  transition: transform 80ms linear;
}

/* ==========================================================================
   26. AVATAR / ORB BREATH
   ========================================================================== */
.jn-orb {
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    var(--jn-iri-cyan) 0%,
    var(--jn-blue-5) 35%,
    var(--jn-blue-1) 70%,
    var(--jn-ink-0) 100%);
  box-shadow:
    inset 0 0 30px rgba(255,255,255,0.2),
    0 0 50px rgba(190, 194, 205,0.4);
  animation: jn-breathe 4.5s ease-in-out infinite;
}

.jn-orb-orange {
  background: radial-gradient(circle at 30% 30%,
    var(--jn-orange-soft) 0%,
    var(--jn-orange) 40%,
    var(--jn-orange-deep) 70%,
    var(--jn-orange-ember) 100%);
  box-shadow:
    inset 0 0 30px rgba(255,255,255,0.18),
    0 0 50px var(--jn-orange-glow);
}

/* ==========================================================================
   27. NUMBER TICKER
   ========================================================================== */
.jn-ticker {
  font-family: var(--jn-font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   28. ACCORDION (FAQ)
   ========================================================================== */
.jn-accordion {
  border: 1px solid var(--jn-border);
  border-radius: var(--jn-r-3);
  overflow: hidden;
  background: var(--jn-ink-3);
}
.jn-accordion-item + .jn-accordion-item { border-top: 1px solid var(--jn-border); }
.jn-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--jn-s-4) var(--jn-s-5);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.jn-accordion-summary::-webkit-details-marker { display: none; }
.jn-accordion-summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--jn-text-faint);
  transition: transform var(--jn-t-base) var(--jn-ease-out);
}
.jn-accordion-item[open] .jn-accordion-summary::after {
  transform: rotate(45deg);
  color: var(--jn-orange);
}
.jn-accordion-body {
  padding: 0 var(--jn-s-5) var(--jn-s-5);
  font-size: 0.9375rem;
  color: var(--jn-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   29. TILT
   ========================================================================== */
[data-tilt] {
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform var(--jn-t-base) var(--jn-ease-out);
  will-change: transform;
}
[data-tilt-glare] {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--tilt-glare-x, 50%) var(--tilt-glare-y, 50%),
    rgba(255,255,255,0.18), transparent 50%);
  opacity: 0;
  transition: opacity var(--jn-t-base);
  mix-blend-mode: screen;
}
[data-tilt]:hover [data-tilt-glare] { opacity: 1; }

/* ==========================================================================
   30. PARTICLES CANVAS
   ========================================================================== */
[data-particles] {
  position: relative;
  isolation: isolate;
}
.jn-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* ==========================================================================
   31. PAGE TRANSITIONS
   ========================================================================== */
body { transition: opacity 200ms var(--jn-ease-out); }
body.is-leaving { opacity: 0; pointer-events: none; }

/* ==========================================================================
   32. EXTRA UTILITY ANIMATIONS  (random misc — rarely used but available)
   ========================================================================== */
@keyframes jn-shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
  20%, 40%, 60%, 80%      { transform: translateX(3px); }
}
@keyframes jn-jelly {
  0%   { transform: scale(1, 1); }
  30%  { transform: scale(1.25, 0.75); }
  40%  { transform: scale(0.75, 1.25); }
  50%  { transform: scale(1.15, 0.85); }
  65%  { transform: scale(0.95, 1.05); }
  75%  { transform: scale(1.05, 0.95); }
  100% { transform: scale(1, 1); }
}
@keyframes jn-rubber {
  0%   { transform: scale3d(1, 1, 1); }
  30%  { transform: scale3d(1.25, 0.75, 1); }
  40%  { transform: scale3d(0.75, 1.25, 1); }
  60%  { transform: scale3d(1.05, 0.95, 1); }
  100% { transform: scale3d(1, 1, 1); }
}

.jn-anim-shake  { animation: jn-shake 600ms ease-in-out; }
.jn-anim-jelly  { animation: jn-jelly 800ms var(--jn-ease-out); }
.jn-anim-rubber { animation: jn-rubber 1s var(--jn-ease-out); }

/* ==========================================================================
   33. LANDING — TESTIMONIAL CARDS
   ========================================================================== */
.jn-testimonials {
  padding-block: clamp(3rem, 8vw, 7rem);
}
.jn-testimonials-grid {
  columns: 3 280px;
  column-gap: var(--jn-s-5);
  max-width: var(--jn-content-max);
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.jn-quote {
  break-inside: avoid;
  margin-bottom: var(--jn-s-5);
  padding: var(--jn-s-5);
  background: var(--jn-ink-3);
  border: 1px solid var(--jn-border);
  border-radius: var(--jn-r-4);
  display: block;
}
.jn-quote-text {
  font-size: 0.9375rem;
  color: var(--jn-text-muted);
  line-height: 1.5;
  margin: 0 0 var(--jn-s-3);
}
.jn-quote-author {
  display: flex;
  align-items: center;
  gap: var(--jn-s-3);
}
.jn-quote-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--jn-blue-5);
  display: inline-grid;
  place-items: center;
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
}
.jn-quote-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--jn-text);
}
.jn-quote-role {
  font-size: 0.75rem;
  color: var(--jn-text-faint);
}

/* ==========================================================================
   34. STAT TICKERS
   ========================================================================== */
.jn-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--jn-s-5);
  padding-block: var(--jn-s-7);
}
@media (max-width: 768px) { .jn-stats { grid-template-columns: repeat(2, 1fr); } }
.jn-stat {
  text-align: center;
  padding: var(--jn-s-5);
}
.jn-stat-num {
  font-family: var(--jn-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: linear-gradient(180deg, white, var(--jn-blue-9));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  letter-spacing: -0.03em;
}
.jn-stat-label {
  display: block;
  margin-top: var(--jn-s-2);
  font-size: 0.875rem;
  color: var(--jn-text-faint);
}

/* ==========================================================================
   35. FOOTER
   ========================================================================== */
.jn-footer {
  padding: var(--jn-s-9) clamp(1rem, 4vw, 2.5rem) var(--jn-s-7);
  border-top: 1px solid var(--jn-border);
  background: var(--jn-ink-1);
  position: relative;
  isolation: isolate;
}
.jn-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--jn-orange-glow), transparent);
}
.jn-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--jn-s-7);
  max-width: var(--jn-content-max);
  margin: 0 auto;
}
@media (max-width: 768px) { .jn-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .jn-footer-grid { grid-template-columns: 1fr; } }

.jn-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--jn-s-3);
  font-family: var(--jn-font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--jn-s-3);
}
.jn-footer-tag {
  font-size: 0.875rem;
  color: var(--jn-text-faint);
  max-width: 24rem;
}

.jn-footer-h {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jn-text-faint);
  margin-bottom: var(--jn-s-3);
}
.jn-footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--jn-s-2); }
.jn-footer-list a {
  font-size: 0.875rem;
  color: var(--jn-text-muted);
  transition: color var(--jn-t-fast);
}
.jn-footer-list a:hover { color: var(--jn-text); }

.jn-footer-bottom {
  max-width: var(--jn-content-max);
  margin: var(--jn-s-7) auto 0;
  padding-top: var(--jn-s-5);
  border-top: 1px solid var(--jn-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--jn-s-4);
  font-size: 0.75rem;
  color: var(--jn-text-faint);
  flex-wrap: wrap;
}

/* ==========================================================================
   36. CODE BLOCKS / KBD
   ========================================================================== */
code, .jn-code {
  font-family: var(--jn-font-mono);
  font-size: 0.875em;
  padding: 1px 6px;
  background: var(--jn-ink-5);
  border-radius: 4px;
  color: var(--jn-blue-9);
  border: 1px solid var(--jn-border);
}

pre, .jn-pre {
  font-family: var(--jn-font-mono);
  font-size: 0.8125rem;
  padding: var(--jn-s-4) var(--jn-s-5);
  background: var(--jn-ink-1);
  border: 1px solid var(--jn-border);
  border-radius: var(--jn-r-3);
  overflow-x: auto;
  line-height: 1.5;
}

kbd, .jn-kbd {
  font-family: var(--jn-font-mono);
  font-size: 0.75em;
  padding: 1px 6px;
  background: var(--jn-ink-5);
  border: 1px solid var(--jn-border-strong);
  border-radius: 4px;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.4);
  color: var(--jn-text);
}

/* ==========================================================================
   37. STATS / METRICS
   ========================================================================== */
.jn-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--jn-s-4);
  background: var(--jn-ink-3);
  border: 1px solid var(--jn-border);
  border-radius: var(--jn-r-3);
}
.jn-metric-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--jn-text-faint);
}
.jn-metric-value {
  font-family: var(--jn-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.jn-metric-delta { font-size: 0.75rem; }
.jn-metric-delta-up { color: var(--jn-success); }
.jn-metric-delta-down { color: var(--jn-danger); }

/* ==========================================================================
   38. BREATHING ICONS / SVG MARKS
   ========================================================================== */
.jn-svg-glow {
  filter: drop-shadow(0 0 8px currentColor);
}
.jn-svg-orange {
  color: var(--jn-orange);
  filter: drop-shadow(0 0 6px var(--jn-orange-glow));
}
.jn-svg-blue {
  color: var(--jn-blue-7);
  filter: drop-shadow(0 0 6px rgba(190, 194, 205,0.5));
}

/* ==========================================================================
   39. LOADING SKELETONS
   ========================================================================== */
.jn-skeleton {
  background: linear-gradient(90deg,
    var(--jn-ink-4) 0%,
    var(--jn-ink-5) 50%,
    var(--jn-ink-4) 100%);
  background-size: 200% 100%;
  border-radius: var(--jn-r-2);
  animation: jn-skeleton-shimmer 1.4s var(--jn-ease-in-out) infinite;
}
@keyframes jn-skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.jn-skeleton-text { height: 0.875rem; width: 100%; border-radius: 999px; }
.jn-skeleton-text-half { width: 50%; }
.jn-skeleton-circle { width: 40px; height: 40px; border-radius: 50%; }
.jn-skeleton-card { height: 8rem; }

/* ==========================================================================
   40. TYPING DOTS
   ========================================================================== */
.jn-typing {
  display: inline-flex;
  gap: 4px;
  padding: 8px 12px;
  background: var(--jn-ink-4);
  border-radius: var(--jn-r-full);
}
.jn-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jn-text-faint);
  animation: jn-typing-bounce 1.2s ease-in-out infinite;
}
.jn-typing span:nth-child(2) { animation-delay: 150ms; }
.jn-typing span:nth-child(3) { animation-delay: 300ms; }

/* ==========================================================================
   41. GRADIENT BORDERS (utility)
   ========================================================================== */
.jn-gborder {
  position: relative;
  background: var(--jn-ink-3);
  border-radius: inherit;
}
.jn-gborder::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--jn-blue-7), var(--jn-iri-violet), var(--jn-orange));
  z-index: -1;
}

/* ==========================================================================
   42. VOICE LANGUAGE PILLS REDESIGN (existing voice mode)
   ========================================================================== */
.voice-lang {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(20px);
}
.voice-lang-btn {
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
}
.voice-lang-btn.is-active {
  background: linear-gradient(180deg, var(--jn-blue-6), var(--jn-blue-4)) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(58,120,255,0.4);
}

/* ==========================================================================
   43. ADMIN POLISH
   ========================================================================== */
.admin-loading {
  background: radial-gradient(circle at center, var(--jn-blue-1), var(--jn-ink-0));
}
.tier-pill {
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
}

/* ==========================================================================
   44. SCROLL-LINKED ANIMATIONS (modern browsers)
   ========================================================================== */
@supports (animation-timeline: scroll()) {
  .jn-scroll-fade-in {
    animation: jn-fade-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
  .jn-scroll-up {
    animation: jn-fade-in-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
  .jn-scroll-scale {
    animation: jn-scale-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
  .jn-scroll-progress {
    animation: jn-stretch-x linear both;
    animation-timeline: scroll(root);
  }
}

/* ==========================================================================
   45. SAFE AREA (iOS notch)
   ========================================================================== */
.jn-safe-top    { padding-top: env(safe-area-inset-top); }
.jn-safe-bottom { padding-bottom: env(safe-area-inset-bottom); }
.jn-safe-left   { padding-left: env(safe-area-inset-left); }
.jn-safe-right  { padding-right: env(safe-area-inset-right); }

/* ==========================================================================
   46. BRAND MARK COMPONENT
   ========================================================================== */
.jn-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22%;
  background: var(--jn-ink-0);
  overflow: hidden;
  isolation: isolate;
}
.jn-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jn-mark::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 50%, var(--jn-orange-glow), transparent 60%);
  filter: blur(16px);
  z-index: -1;
  opacity: 0.7;
  animation: jn-glow-pulse-orange 4s ease-in-out infinite;
}
.jn-mark-sm { width: 24px; height: 24px; border-radius: 6px; }
.jn-mark-md { width: 40px; height: 40px; border-radius: 10px; }
.jn-mark-lg { width: 64px; height: 64px; border-radius: 16px; }
.jn-mark-xl { width: 96px; height: 96px; border-radius: 22px; }
.jn-mark-2xl{ width: 128px; height: 128px; border-radius: 28px; }

/* ==========================================================================
   47. FINAL — overrides for legacy elements
   ========================================================================== */
/* Make existing landing nav use orange-tinted hover underline */
.ln-nav { backdrop-filter: blur(20px) saturate(180%); }
.ln-link {
  position: relative;
  transition: color var(--jn-t-fast);
}
.ln-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--jn-orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--jn-t-base) var(--jn-ease-out);
}
.ln-link:hover { color: var(--jn-text); }
.ln-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Existing hero pieces — sprinkle orange */
.hero-pill-dot {
  background: var(--jn-orange) !important;
  box-shadow: 0 0 10px var(--jn-orange-glow);
}

.hero-grad {
  background: linear-gradient(135deg,
    var(--jn-iri-cyan),
    var(--jn-iri-cobalt),
    var(--jn-iri-violet),
    var(--jn-orange-soft)) !important;
  background-size: 200% auto !important;
  animation: jn-iridescent-pan 8s linear infinite;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.hero-avatar-mark {
  position: relative;
  isolation: isolate;
}
.hero-avatar-mark::after {
  content: "";
  position: absolute;
  inset: -25%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--jn-orange-glow), transparent 65%);
  filter: blur(28px);
  z-index: -1;
  animation: jn-glow-pulse-orange 4s ease-in-out infinite;
}

/* Feature cards inherit spotlight */
.feature-card {
  isolation: isolate;
  position: relative;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%),
    rgba(190, 194, 205,0.12),
    transparent 40%);
  opacity: 0;
  transition: opacity var(--jn-t-base);
  pointer-events: none;
  z-index: -1;
}
.feature-card:hover::after { opacity: 1; }

/* upgrade orange button accent for primary CTAs that include data-warm */
.ln-btn-primary[data-warm], .jn-btn-primary[data-warm] {
  background: linear-gradient(180deg, var(--jn-orange), var(--jn-orange-deep)) !important;
  border-color: rgba(184, 188, 200,0.5) !important;
  box-shadow: 0 8px 24px var(--jn-orange-glow), inset 0 1px 0 rgba(255,255,255,0.2) !important;
}

/* ==========================================================================
   48. ALERT BANNERS
   ========================================================================== */
.jn-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--jn-s-3);
  padding: var(--jn-s-4) var(--jn-s-5);
  background: var(--jn-ink-3);
  border: 1px solid var(--jn-border);
  border-left: 3px solid var(--jn-blue-6);
  border-radius: var(--jn-r-3);
  font-size: 0.875rem;
  color: var(--jn-text-muted);
  line-height: 1.5;
}
.jn-banner-success { border-left-color: var(--jn-success); background: linear-gradient(90deg, rgba(61,214,140,0.05), transparent 30%); }
.jn-banner-danger  { border-left-color: var(--jn-danger);  background: linear-gradient(90deg, rgba(255,90,90,0.05), transparent 30%); }
.jn-banner-warning { border-left-color: var(--jn-warning); background: linear-gradient(90deg, rgba(214, 218, 227,0.05), transparent 30%); }
.jn-banner-orange  { border-left-color: var(--jn-orange);  background: linear-gradient(90deg, rgba(184, 188, 200,0.06), transparent 30%); }
.jn-banner-icon { flex-shrink: 0; margin-top: 2px; }
.jn-banner-body { flex: 1; }
.jn-banner-title { font-weight: 650; color: var(--jn-text); margin: 0 0 2px; }
.jn-banner-desc { margin: 0; }
.jn-banner-actions {
  display: inline-flex;
  gap: var(--jn-s-2);
  margin-top: var(--jn-s-2);
}
.jn-banner-close {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--jn-text-faint);
  border: 0;
  cursor: pointer;
  transition: background-color var(--jn-t-fast);
}
.jn-banner-close:hover { background: rgba(255,255,255,0.06); }

/* ==========================================================================
   49. AVATARS
   ========================================================================== */
.jn-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--jn-blue-5);
  color: white;
  font-weight: 600;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.jn-avatar img { width: 100%; height: 100%; object-fit: cover; }
.jn-avatar-xs { width: 20px; height: 20px; font-size: 0.5625rem; }
.jn-avatar-sm { width: 28px; height: 28px; font-size: 0.6875rem; }
.jn-avatar-md { width: 36px; height: 36px; font-size: 0.8125rem; }
.jn-avatar-lg { width: 48px; height: 48px; font-size: 1rem; }
.jn-avatar-xl { width: 72px; height: 72px; font-size: 1.5rem; }

.jn-avatar-ring {
  box-shadow: 0 0 0 2px var(--jn-ink-0), 0 0 0 4px var(--jn-orange);
}
.jn-avatar-status {
  position: relative;
}
.jn-avatar-status::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 25%;
  height: 25%;
  min-width: 8px;
  min-height: 8px;
  background: var(--jn-success);
  border: 2px solid var(--jn-ink-1);
  border-radius: 50%;
}
.jn-avatar-status-away::after { background: var(--jn-warning); }
.jn-avatar-status-offline::after { background: var(--jn-text-dim); }

.jn-avatar-stack {
  display: inline-flex;
  flex-direction: row-reverse;
}
.jn-avatar-stack > .jn-avatar {
  margin-left: -8px;
  border: 2px solid var(--jn-ink-1);
}
.jn-avatar-stack > .jn-avatar:last-child { margin-left: 0; }

/* ==========================================================================
   50. LISTS
   ========================================================================== */
.jn-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--jn-s-2);
}
.jn-list-checkmarks li,
.jn-list-arrows li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--jn-text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.jn-list-checkmarks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(190, 194, 205,0.15);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
  background-color: var(--jn-blue-7);
}
.jn-list-arrows li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--jn-orange);
  font-weight: 700;
}

.jn-list-divided > li + li {
  border-top: 1px solid var(--jn-border);
  padding-top: var(--jn-s-3);
}

/* ==========================================================================
   51. TABLES
   ========================================================================== */
.jn-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}
.jn-table th, .jn-table td {
  text-align: left;
  padding: var(--jn-s-3) var(--jn-s-4);
  border-bottom: 1px solid var(--jn-border);
}
.jn-table th {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--jn-text-faint);
  font-weight: 600;
  background: var(--jn-ink-2);
  position: sticky;
  top: 0;
  z-index: 1;
}
.jn-table tr {
  transition: background-color var(--jn-t-fast);
}
.jn-table tbody tr:hover {
  background: rgba(190, 194, 205,0.04);
}
.jn-table-compact th, .jn-table-compact td { padding: var(--jn-s-2) var(--jn-s-3); }

/* ==========================================================================
   52. PROGRESS BARS
   ========================================================================== */
.jn-progress {
  width: 100%;
  height: 6px;
  background: var(--jn-ink-5);
  border-radius: var(--jn-r-full);
  overflow: hidden;
  position: relative;
}
.jn-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--jn-blue-6), var(--jn-blue-7));
  border-radius: inherit;
  transition: width var(--jn-t-base) var(--jn-ease-out);
  position: relative;
  overflow: hidden;
}
.jn-progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  background-size: 50% 100%;
  background-repeat: no-repeat;
  animation: jn-progress-shine 1.4s linear infinite;
}
@keyframes jn-progress-shine {
  from { background-position: -50% 0; }
  to   { background-position: 150% 0; }
}
.jn-progress-orange .jn-progress-bar {
  background: linear-gradient(90deg, var(--jn-orange-deep), var(--jn-orange));
}
.jn-progress-success .jn-progress-bar {
  background: linear-gradient(90deg, color-mix(in srgb, var(--jn-success), black 30%), var(--jn-success));
}
.jn-progress-lg { height: 12px; }

.jn-progress-radial {
  --p: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    conic-gradient(var(--jn-blue-7) calc(var(--p) * 1%), var(--jn-ink-5) 0);
  display: inline-grid;
  place-items: center;
  position: relative;
}
.jn-progress-radial::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--jn-ink-1);
  border-radius: 50%;
}
.jn-progress-radial > span {
  position: relative;
  font-family: var(--jn-font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   53. DIVIDERS
   ========================================================================== */
.jn-divider {
  border: 0;
  height: 1px;
  background: var(--jn-border);
  margin: var(--jn-s-5) 0;
}
.jn-divider-fade {
  background: linear-gradient(90deg, transparent, var(--jn-border-strong), transparent);
}
.jn-divider-orange {
  background: linear-gradient(90deg, transparent, var(--jn-orange), transparent);
  height: 1px;
  opacity: 0.6;
}
.jn-divider-vertical {
  width: 1px;
  height: 1em;
  background: var(--jn-border);
  display: inline-block;
  margin: 0 var(--jn-s-2);
}

.jn-divider-text {
  display: flex;
  align-items: center;
  gap: var(--jn-s-3);
  margin: var(--jn-s-5) 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--jn-text-faint);
}
.jn-divider-text::before, .jn-divider-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--jn-border);
}

/* ==========================================================================
   54. EMPTY STATES
   ========================================================================== */
.jn-empty {
  text-align: center;
  padding: var(--jn-s-10) var(--jn-s-5);
  max-width: 24rem;
  margin: 0 auto;
}
.jn-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--jn-r-3);
  background: var(--jn-ink-4);
  display: inline-grid;
  place-items: center;
  margin-bottom: var(--jn-s-4);
  color: var(--jn-text-faint);
}
.jn-empty-title {
  font-family: var(--jn-font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 var(--jn-s-2);
  color: var(--jn-text);
}
.jn-empty-desc {
  font-size: 0.875rem;
  color: var(--jn-text-muted);
  line-height: 1.5;
  margin: 0 0 var(--jn-s-5);
}

/* ==========================================================================
   55. STATUS PAGES (404, 500, etc.)
   ========================================================================== */
.jn-status-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--jn-s-7);
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.jn-status-code {
  font-family: var(--jn-font-display);
  font-size: clamp(6rem, 22vw, 14rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  background: linear-gradient(135deg,
    var(--jn-iri-cobalt),
    var(--jn-iri-violet),
    var(--jn-orange));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: jn-iridescent-pan 8s linear infinite;
  margin: 0;
}
.jn-status-title {
  font-family: var(--jn-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: var(--jn-s-3) 0 var(--jn-s-2);
}
.jn-status-desc {
  font-size: 1rem;
  color: var(--jn-text-muted);
  max-width: 28rem;
  margin: 0 auto var(--jn-s-5);
}

/* ==========================================================================
   56. PROFILE / ACCOUNT CARDS
   ========================================================================== */
.jn-profile-card {
  display: flex;
  align-items: center;
  gap: var(--jn-s-4);
  padding: var(--jn-s-5);
  background: var(--jn-ink-3);
  border: 1px solid var(--jn-border);
  border-radius: var(--jn-r-4);
}
.jn-profile-info { flex: 1; min-width: 0; }
.jn-profile-name {
  font-weight: 650;
  font-size: 1rem;
  color: var(--jn-text);
  margin: 0;
}
.jn-profile-meta {
  font-size: 0.8125rem;
  color: var(--jn-text-faint);
  margin-top: 2px;
}

/* ==========================================================================
   57. SETTINGS LIST ROWS
   ========================================================================== */
.jn-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--jn-s-4);
  padding: var(--jn-s-4) var(--jn-s-5);
  border-bottom: 1px solid var(--jn-border);
}
.jn-settings-row:last-child { border-bottom: 0; }
.jn-settings-label {
  font-weight: 600;
  color: var(--jn-text);
  font-size: 0.9375rem;
  margin: 0;
}
.jn-settings-help {
  font-size: 0.8125rem;
  color: var(--jn-text-faint);
  margin: 4px 0 0;
}

/* ==========================================================================
   58. KBD HINTS
   ========================================================================== */
.jn-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  color: var(--jn-text-faint);
}
.jn-shortcut-keys {
  display: inline-flex;
  gap: 2px;
}

/* ==========================================================================
   59. CTA STRIP / NEWSLETTER
   ========================================================================== */
.jn-cta-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--jn-s-6);
  padding: var(--jn-s-7);
  background:
    radial-gradient(ellipse 60% 70% at 30% 50%, rgba(190, 194, 205,0.18), transparent 60%),
    radial-gradient(ellipse 60% 70% at 80% 50%, var(--jn-orange-glow-2), transparent 60%),
    var(--jn-ink-3);
  border: 1px solid var(--jn-border);
  border-radius: var(--jn-r-5);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.jn-cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at center, black, transparent 90%);
          mask-image: radial-gradient(ellipse 80% 60% at center, black, transparent 90%);
  pointer-events: none;
}
.jn-cta-strip-title {
  font-family: var(--jn-font-display);
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--jn-s-2);
}
.jn-cta-strip-sub {
  font-size: 0.9375rem;
  color: var(--jn-text-muted);
  margin: 0;
}
@media (max-width: 768px) {
  .jn-cta-strip { grid-template-columns: 1fr; text-align: center; }
}

/* ==========================================================================
   60. BREADCRUMB ARROW NAV
   ========================================================================== */
.jn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--jn-text-faint);
  transition: color var(--jn-t-fast), gap var(--jn-t-fast);
}
.jn-back-link:hover {
  color: var(--jn-text);
  gap: 10px;
}

/* ==========================================================================
   61. STEPPER
   ========================================================================== */
.jn-stepper {
  display: flex;
  align-items: center;
  gap: var(--jn-s-3);
}
.jn-stepper-step {
  display: inline-flex;
  align-items: center;
  gap: var(--jn-s-2);
}
.jn-stepper-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--jn-ink-5);
  color: var(--jn-text-faint);
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--jn-border);
}
.jn-stepper-step.is-done .jn-stepper-dot {
  background: var(--jn-success);
  color: white;
  border-color: transparent;
}
.jn-stepper-step.is-active .jn-stepper-dot {
  background: var(--jn-blue-5);
  color: white;
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(190, 194, 205,0.2);
}
.jn-stepper-label {
  font-size: 0.8125rem;
  color: var(--jn-text-muted);
}
.jn-stepper-step.is-active .jn-stepper-label { color: var(--jn-text); font-weight: 600; }
.jn-stepper-line {
  flex: 1;
  height: 1px;
  background: var(--jn-border);
}
.jn-stepper-step.is-done + .jn-stepper-line { background: var(--jn-success); }

/* ==========================================================================
   62. CHIP RAIL (horizontal scroll)
   ========================================================================== */
.jn-chip-rail {
  display: flex;
  gap: var(--jn-s-2);
  overflow-x: auto;
  padding: var(--jn-s-2) 0;
  scrollbar-width: none;
}
.jn-chip-rail::-webkit-scrollbar { display: none; }
.jn-chip-rail .jn-chip { flex-shrink: 0; }

/* ==========================================================================
   63. CODE WINDOW (mock IDE in marketing page)
   ========================================================================== */
.jn-codewin {
  background: var(--jn-ink-1);
  border: 1px solid var(--jn-border-strong);
  border-radius: var(--jn-r-4);
  overflow: hidden;
  box-shadow: var(--jn-shadow-4);
}
.jn-codewin-bar {
  display: flex;
  align-items: center;
  gap: var(--jn-s-2);
  padding: var(--jn-s-3) var(--jn-s-4);
  background: var(--jn-ink-2);
  border-bottom: 1px solid var(--jn-border);
}
.jn-codewin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--jn-text-dim);
}
.jn-codewin-dot:nth-child(1) { background: #ff5f57; }
.jn-codewin-dot:nth-child(2) { background: #ffbd2e; }
.jn-codewin-dot:nth-child(3) { background: #28c840; }
.jn-codewin-name {
  margin-left: auto;
  font-family: var(--jn-font-mono);
  font-size: 0.6875rem;
  color: var(--jn-text-faint);
}
.jn-codewin-body {
  padding: var(--jn-s-5);
  font-family: var(--jn-font-mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--jn-text-muted);
  overflow-x: auto;
}
.jn-codewin-line { display: block; }
.jn-codewin-key { color: #d291ff; }
.jn-codewin-str { color: #84e3a4; }
.jn-codewin-num { color: var(--jn-orange-soft); }
.jn-codewin-com { color: var(--jn-text-dim); font-style: italic; }
.jn-codewin-fn  { color: var(--jn-blue-7); }

/* ==========================================================================
   64. STAT BARS (data viz)
   ========================================================================== */
.jn-bar-row {
  display: grid;
  grid-template-columns: 6rem 1fr 3rem;
  gap: var(--jn-s-3);
  align-items: center;
  padding: var(--jn-s-2) 0;
  font-size: 0.8125rem;
}
.jn-bar-track {
  height: 6px;
  background: var(--jn-ink-5);
  border-radius: var(--jn-r-full);
  overflow: hidden;
}
.jn-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--jn-blue-6), var(--jn-blue-7));
  border-radius: inherit;
  transform-origin: left;
  animation: jn-stretch-x 1.2s var(--jn-ease-out-strong) backwards;
}

/* ==========================================================================
   65. INDICATOR DOTS (carousel pagination)
   ========================================================================== */
.jn-dots {
  display: inline-flex;
  gap: 6px;
}
.jn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jn-text-dim);
  transition: background-color var(--jn-t-fast), width var(--jn-t-base);
  cursor: pointer;
}
.jn-dot.is-active {
  background: var(--jn-orange);
  width: 18px;
  border-radius: 999px;
}

/* ==========================================================================
   66. SLIDE CAROUSEL (generic)
   ========================================================================== */
.jn-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: var(--jn-s-4);
  scrollbar-width: none;
  padding: var(--jn-s-2);
  -webkit-overflow-scrolling: touch;
}
.jn-carousel::-webkit-scrollbar { display: none; }
.jn-carousel-item {
  flex-shrink: 0;
  width: min(86vw, 360px);
  scroll-snap-align: start;
}

/* ==========================================================================
   67. RIBBON (badges on cards)
   ========================================================================== */
.jn-ribbon {
  position: absolute;
  top: 12px;
  right: -8px;
  padding: 4px 10px;
  background: var(--jn-orange);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  box-shadow: 0 4px 12px var(--jn-orange-glow);
}
.jn-ribbon::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent var(--jn-orange-deep) transparent transparent;
}

/* ==========================================================================
   68. ANIMATED ICONS (svg keyframes)
   ========================================================================== */
@keyframes jn-icon-spin    { to { transform: rotate(360deg); } }
@keyframes jn-icon-pulse   { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes jn-icon-bob     { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes jn-icon-tada {
  0%   { transform: scale(1) rotate(0); }
  10%, 20% { transform: scale(0.9) rotate(-3deg); }
  30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
  40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes jn-icon-swing {
  20%  { transform: rotate(15deg); }
  40%  { transform: rotate(-10deg); }
  60%  { transform: rotate(5deg); }
  80%  { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

.jn-icon-spin   { animation: jn-icon-spin 6s linear infinite; }
.jn-icon-pulse  { animation: jn-icon-pulse 2s ease-in-out infinite; }
.jn-icon-bob    { animation: jn-icon-bob 1.6s ease-in-out infinite; }
.jn-icon-tada:hover { animation: jn-icon-tada 1s ease-in-out; }
.jn-icon-swing:hover { animation: jn-icon-swing 1s ease-in-out; transform-origin: top; }

/* ==========================================================================
   69. FOCUS HALO (orange ring expanding)
   ========================================================================== */
@keyframes jn-focus-halo {
  0%   { box-shadow: 0 0 0 0 var(--jn-orange-glow); }
  100% { box-shadow: 0 0 0 16px transparent; }
}
.jn-btn:focus-visible,
.jn-input:focus-visible,
.jn-textarea:focus-visible {
  animation: jn-focus-halo 600ms ease-out;
}

/* ==========================================================================
   70. AMBIENT BG ANIMATIONS (page-level)
   ========================================================================== */
.jn-ambient {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  opacity: 0.7;
}
.jn-ambient::before {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  top: -20vw;
  left: -20vw;
  background: radial-gradient(circle, rgba(190, 194, 205,0.18), transparent 60%);
  filter: blur(80px);
  animation: jn-ambient-1 30s ease-in-out infinite alternate;
}
.jn-ambient::after {
  content: "";
  position: absolute;
  width: 50vw;
  height: 50vw;
  bottom: -15vw;
  right: -15vw;
  background: radial-gradient(circle, var(--jn-orange-glow-2), transparent 65%);
  filter: blur(80px);
  animation: jn-ambient-2 36s ease-in-out infinite alternate;
}
@keyframes jn-ambient-1 {
  to { transform: translate(20%, 30%) scale(1.2); }
}
@keyframes jn-ambient-2 {
  to { transform: translate(-20%, -25%) scale(1.15); }
}

/* ==========================================================================
   71. MICRO INTERACTIONS — UTILITY HOVER LIFTS
   ========================================================================== */
.jn-hover-lift {
  transition: transform var(--jn-t-base) var(--jn-ease-out), box-shadow var(--jn-t-base);
}
.jn-hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--jn-shadow-3);
}

.jn-hover-glow {
  transition: box-shadow var(--jn-t-base);
}
.jn-hover-glow:hover {
  box-shadow: 0 0 30px rgba(190, 194, 205,0.3);
}

.jn-hover-grow {
  transition: transform var(--jn-t-base) var(--jn-ease-out);
}
.jn-hover-grow:hover { transform: scale(1.04); }

.jn-hover-rotate {
  transition: transform var(--jn-t-base) var(--jn-ease-spring);
}
.jn-hover-rotate:hover { transform: rotate(3deg); }

.jn-hover-tilt {
  transition: transform var(--jn-t-base) var(--jn-ease-out);
}
.jn-hover-tilt:hover { transform: perspective(800px) rotateY(8deg) rotateX(-4deg); }

/* ==========================================================================
   72. GLOWING TEXT
   ========================================================================== */
.jn-glow-text-blue {
  text-shadow:
    0 0 8px rgba(190, 194, 205,0.6),
    0 0 24px rgba(190, 194, 205,0.3);
}
.jn-glow-text-orange {
  color: var(--jn-orange);
  text-shadow:
    0 0 8px rgba(184, 188, 200,0.6),
    0 0 24px rgba(184, 188, 200,0.35);
}

/* ==========================================================================
   73. GRADIENT ANIMATED UNDERLINE
   ========================================================================== */
.jn-underline-grad {
  position: relative;
  background: linear-gradient(90deg, var(--jn-blue-7), var(--jn-orange));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
}

.jn-underline-anim {
  position: relative;
}
.jn-underline-anim::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--jn-blue-7), var(--jn-orange));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--jn-t-base) var(--jn-ease-out);
}
.jn-underline-anim:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ==========================================================================
   74. SECTION HEADERS
   ========================================================================== */
.jn-section-head {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto var(--jn-s-9);
}
.jn-section-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jn-orange);
  margin-bottom: var(--jn-s-3);
  padding: 4px 10px;
  background: rgba(184, 188, 200,0.08);
  border: 1px solid rgba(184, 188, 200,0.2);
  border-radius: var(--jn-r-full);
}
.jn-section-title {
  font-family: var(--jn-font-display);
  font-size: clamp(1.75rem, 4vw + 1rem, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 var(--jn-s-4);
  text-wrap: balance;
}
.jn-section-sub {
  font-size: 1.0625rem;
  color: var(--jn-text-muted);
  line-height: 1.55;
  text-wrap: pretty;
}

/* ==========================================================================
   75. BIG STAT CARD
   ========================================================================== */
.jn-bigstat {
  position: relative;
  padding: var(--jn-s-8);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(190, 194, 205,0.12), transparent 70%),
    var(--jn-ink-3);
  border: 1px solid var(--jn-border);
  border-radius: var(--jn-r-5);
  text-align: center;
}
.jn-bigstat-num {
  font-family: var(--jn-font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, white 30%, var(--jn-blue-9));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}
.jn-bigstat-label {
  display: block;
  margin-top: var(--jn-s-3);
  font-size: 0.875rem;
  color: var(--jn-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* ==========================================================================
   76. NOTIFICATION CENTER (in-app)
   ========================================================================== */
.jn-notif {
  display: flex;
  align-items: flex-start;
  gap: var(--jn-s-3);
  padding: var(--jn-s-4);
  border-radius: var(--jn-r-3);
  background: var(--jn-ink-3);
  border: 1px solid var(--jn-border);
  transition: background-color var(--jn-t-fast);
}
.jn-notif:hover { background: var(--jn-ink-4); }
.jn-notif-unread {
  border-left: 3px solid var(--jn-blue-6);
  background: linear-gradient(90deg, rgba(190, 194, 205,0.05), transparent 30%);
}
.jn-notif-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(190, 194, 205,0.12);
  color: var(--jn-blue-7);
  display: inline-grid;
  place-items: center;
}
.jn-notif-body { flex: 1; min-width: 0; }
.jn-notif-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--jn-text);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jn-notif-desc {
  font-size: 0.8125rem;
  color: var(--jn-text-muted);
  line-height: 1.4;
}
.jn-notif-time {
  font-size: 0.6875rem;
  color: var(--jn-text-faint);
  margin-top: 2px;
}

/* ==========================================================================
   77. COLOR SWATCH UTILITIES
   ========================================================================== */
.jn-swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid var(--jn-border);
}

/* ==========================================================================
   78. DIVIDER WITH ICON
   ========================================================================== */
.jn-divider-icon {
  display: flex;
  align-items: center;
  gap: var(--jn-s-3);
  margin: var(--jn-s-6) 0;
  color: var(--jn-text-faint);
}
.jn-divider-icon::before, .jn-divider-icon::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--jn-border);
}

/* ==========================================================================
   79. PRO BADGE
   ========================================================================== */
.jn-pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: linear-gradient(135deg, var(--jn-orange), var(--jn-orange-deep));
  color: white;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--jn-r-full);
  box-shadow: 0 0 12px var(--jn-orange-glow);
}

/* ==========================================================================
   80. MODAL BACKDROP VARIANTS
   ========================================================================== */
.jn-overlay-light { background: rgba(15,18,28,0.55); }
.jn-overlay-dark  { background: rgba(0,0,0,0.92); backdrop-filter: blur(40px); }
.jn-overlay-blue  {
  background:
    radial-gradient(ellipse at center, rgba(58,120,255,0.4), transparent 60%),
    rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
}

/* ==========================================================================
   81. FORM GROUPS
   ========================================================================== */
.jn-form-group {
  margin-bottom: var(--jn-s-5);
}
.jn-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--jn-s-3);
}
@media (max-width: 640px) {
  .jn-form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   82. FILE UPLOAD ZONE
   ========================================================================== */
.jn-dropzone {
  border: 2px dashed var(--jn-border-strong);
  border-radius: var(--jn-r-4);
  padding: var(--jn-s-7) var(--jn-s-5);
  text-align: center;
  background: var(--jn-ink-2);
  transition:
    border-color var(--jn-t-base),
    background-color var(--jn-t-base);
  cursor: pointer;
}
.jn-dropzone:hover, .jn-dropzone.is-dragover {
  border-color: var(--jn-blue-6);
  background: rgba(190, 194, 205,0.04);
}
.jn-dropzone-icon {
  margin: 0 auto var(--jn-s-3);
  color: var(--jn-text-faint);
}
.jn-dropzone-text {
  font-size: 0.9375rem;
  color: var(--jn-text-muted);
  margin: 0 0 4px;
}
.jn-dropzone-hint {
  font-size: 0.75rem;
  color: var(--jn-text-faint);
}

/* ==========================================================================
   83. DETAIL DISCLOSURE
   ========================================================================== */
.jn-disclosure {
  background: var(--jn-ink-3);
  border: 1px solid var(--jn-border);
  border-radius: var(--jn-r-3);
  overflow: hidden;
}
.jn-disclosure-summary {
  padding: var(--jn-s-4) var(--jn-s-5);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.jn-disclosure-summary::-webkit-details-marker { display: none; }
.jn-disclosure-summary svg { transition: transform var(--jn-t-base); }
.jn-disclosure[open] .jn-disclosure-summary svg { transform: rotate(180deg); }
.jn-disclosure-body {
  padding: 0 var(--jn-s-5) var(--jn-s-5);
  color: var(--jn-text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ==========================================================================
   84. SEGMENTED CONTROL
   ========================================================================== */
.jn-segmented {
  display: inline-flex;
  padding: 3px;
  background: var(--jn-ink-2);
  border: 1px solid var(--jn-border);
  border-radius: var(--jn-r-3);
  position: relative;
}
.jn-segmented-item {
  position: relative;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--jn-text-faint);
  background: transparent;
  border: 0;
  border-radius: calc(var(--jn-r-3) - 3px);
  cursor: pointer;
  transition: color var(--jn-t-fast);
  z-index: 1;
}
.jn-segmented-item.is-active {
  color: var(--jn-text);
  background: var(--jn-ink-5);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 1px 4px rgba(0,0,0,0.3);
}

/* ==========================================================================
   85. RATING STARS
   ========================================================================== */
.jn-rating {
  display: inline-flex;
  gap: 2px;
  color: var(--jn-warning);
}
.jn-rating-star {
  width: 16px;
  height: 16px;
}
.jn-rating-star.is-empty { color: var(--jn-text-dim); }

/* ==========================================================================
   86. TIMELINE
   ========================================================================== */
.jn-timeline {
  position: relative;
  padding-left: var(--jn-s-7);
  list-style: none;
  margin: 0;
}
.jn-timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--jn-blue-6), transparent);
}
.jn-timeline-item {
  position: relative;
  padding-bottom: var(--jn-s-5);
}
.jn-timeline-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--jn-blue-6);
  border: 3px solid var(--jn-ink-1);
  box-shadow: 0 0 0 1px var(--jn-blue-6);
}
.jn-timeline-item.is-orange::before {
  background: var(--jn-orange);
  box-shadow: 0 0 0 1px var(--jn-orange), 0 0 16px var(--jn-orange-glow);
}
.jn-timeline-time {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--jn-text-faint);
  margin-bottom: 4px;
}
.jn-timeline-title {
  font-weight: 650;
  margin: 0 0 4px;
  color: var(--jn-text);
}
.jn-timeline-desc {
  font-size: 0.875rem;
  color: var(--jn-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   87. SCROLLABLE PILL TABS
   ========================================================================== */
.jn-pill-tabs {
  display: inline-flex;
  gap: var(--jn-s-2);
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: none;
}
.jn-pill-tabs::-webkit-scrollbar { display: none; }
.jn-pill-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--jn-ink-3);
  color: var(--jn-text-muted);
  border: 1px solid var(--jn-border);
  border-radius: var(--jn-r-full);
  cursor: pointer;
  transition: all var(--jn-t-fast);
}
.jn-pill-tab:hover { color: var(--jn-text); border-color: var(--jn-border-strong); }
.jn-pill-tab.is-active {
  background: var(--jn-ink-5);
  color: var(--jn-text);
  border-color: rgba(190, 194, 205,0.4);
  box-shadow: 0 0 0 3px rgba(190, 194, 205,0.1);
}

/* ==========================================================================
   88. KPI CARD
   ========================================================================== */
.jn-kpi {
  padding: var(--jn-s-5);
  background:
    linear-gradient(135deg, rgba(190, 194, 205,0.08), transparent 50%),
    var(--jn-ink-3);
  border: 1px solid var(--jn-border);
  border-radius: var(--jn-r-4);
  position: relative;
  overflow: hidden;
}
.jn-kpi-trend {
  position: absolute;
  top: var(--jn-s-4);
  right: var(--jn-s-4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(190, 194, 205,0.12);
  display: inline-grid;
  place-items: center;
  color: var(--jn-blue-7);
}
.jn-kpi-value {
  font-family: var(--jn-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.jn-kpi-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--jn-text-faint);
}

/* ==========================================================================
   89. CHAT BUBBLES (refined)
   ========================================================================== */
.jn-bubble {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.9375rem;
  line-height: 1.45;
  max-width: 80%;
  word-wrap: break-word;
}
.jn-bubble-user {
  background: linear-gradient(135deg, var(--jn-blue-6), var(--jn-blue-4));
  color: white;
  border-bottom-right-radius: 6px;
  box-shadow: 0 2px 8px rgba(58,120,255,0.25);
  align-self: flex-end;
}
.jn-bubble-assistant {
  background: var(--jn-ink-4);
  color: var(--jn-text);
  border: 1px solid var(--jn-border);
  border-bottom-left-radius: 6px;
}

/* ==========================================================================
   90. KEYBOARD SHORTCUTS HINT
   ========================================================================== */
.jn-kbd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--jn-s-3);
  padding: var(--jn-s-2) 0;
  font-size: 0.8125rem;
  color: var(--jn-text-muted);
}
.jn-kbd-action { color: var(--jn-text-muted); }
.jn-kbd-keys {
  display: inline-flex;
  gap: 4px;
}

/* ==========================================================================
   91. AURORA TEXT
   ========================================================================== */
.jn-aurora-text {
  background:
    linear-gradient(90deg, var(--jn-iri-cyan), var(--jn-iri-violet), var(--jn-orange-soft), var(--jn-iri-cyan));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: jn-iridescent-pan 6s linear infinite;
}

/* ==========================================================================
   92. SLIDE-OVER PANEL (right drawer)
   ========================================================================== */
.jn-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 90vw);
  background: var(--jn-ink-3);
  border-left: 1px solid var(--jn-border-strong);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  transform: translateX(100%);
  transition: transform var(--jn-t-slow) var(--jn-ease-out-strong);
  z-index: var(--jn-z-drawer);
  overflow-y: auto;
}
.jn-panel.is-open { transform: translateX(0); }
.jn-panel-head {
  position: sticky;
  top: 0;
  padding: var(--jn-s-5);
  background: var(--jn-ink-3);
  border-bottom: 1px solid var(--jn-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--jn-s-3);
  z-index: 1;
}
.jn-panel-body { padding: var(--jn-s-5); }

/* ==========================================================================
   93. COUNTDOWN TIMER
   ========================================================================== */
.jn-countdown {
  display: inline-flex;
  gap: var(--jn-s-3);
  font-family: var(--jn-font-mono);
  font-variant-numeric: tabular-nums;
}
.jn-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--jn-s-3) var(--jn-s-4);
  background: var(--jn-ink-3);
  border: 1px solid var(--jn-border);
  border-radius: var(--jn-r-3);
  min-width: 60px;
}
.jn-countdown-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--jn-text);
  line-height: 1;
}
.jn-countdown-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--jn-text-faint);
}

/* ==========================================================================
   94. EXTRA UTILITY: COLOR WASHES
   ========================================================================== */
.jn-wash-blue {
  background: linear-gradient(180deg, rgba(190, 194, 205,0.05), transparent);
}
.jn-wash-orange {
  background: linear-gradient(180deg, rgba(184, 188, 200,0.05), transparent);
}
.jn-wash-violet {
  background: linear-gradient(180deg, rgba(106,77,255,0.05), transparent);
}

/* ==========================================================================
   95. CIRCULAR REVEAL (for modals)
   ========================================================================== */
@keyframes jn-circular-reveal {
  from { clip-path: circle(0% at 50% 50%); }
  to   { clip-path: circle(150% at 50% 50%); }
}
.jn-circular-reveal {
  animation: jn-circular-reveal 700ms var(--jn-ease-out-strong);
}

/* ==========================================================================
   96. ANIMATED CHECK SVG
   ========================================================================== */
@keyframes jn-draw-check {
  to { stroke-dashoffset: 0; }
}
.jn-svg-check path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: jn-draw-check 600ms var(--jn-ease-out-strong) forwards;
  animation-delay: 200ms;
}

/* ==========================================================================
   97. HOVER REVEAL (cover slide)
   ========================================================================== */
.jn-cover {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.jn-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--jn-orange);
  transform: translateY(100%);
  transition: transform var(--jn-t-base) var(--jn-ease-out);
  z-index: -1;
}
.jn-cover:hover::before { transform: translateY(0); }
.jn-cover:hover { color: white; }

/* ==========================================================================
   98. HERO STATS BAR (under big headline)
   ========================================================================== */
.jn-hero-stats {
  display: inline-flex;
  align-items: center;
  gap: var(--jn-s-7);
  padding: var(--jn-s-4) var(--jn-s-6);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--jn-border);
  border-radius: var(--jn-r-full);
  backdrop-filter: blur(12px);
  margin-top: var(--jn-s-7);
}
.jn-hero-stat {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.jn-hero-stat-num {
  font-family: var(--jn-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--jn-text);
}
.jn-hero-stat-label {
  font-size: 0.6875rem;
  color: var(--jn-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.jn-hero-stat-divider {
  width: 1px;
  height: 24px;
  background: var(--jn-border);
}

/* ==========================================================================
   99. LOG LIST (audit / activity feed)
   ========================================================================== */
.jn-log {
  display: flex;
  align-items: flex-start;
  gap: var(--jn-s-3);
  padding: var(--jn-s-3) 0;
  border-bottom: 1px solid var(--jn-border);
  font-size: 0.875rem;
}
.jn-log:last-child { border-bottom: 0; }
.jn-log-time {
  font-family: var(--jn-font-mono);
  font-size: 0.75rem;
  color: var(--jn-text-faint);
  white-space: nowrap;
  flex-shrink: 0;
}
.jn-log-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--jn-ink-5);
  display: inline-grid;
  place-items: center;
  color: var(--jn-text-faint);
}
.jn-log-body { flex: 1; min-width: 0; }
.jn-log-action { color: var(--jn-text); }
.jn-log-target { color: var(--jn-blue-7); font-family: var(--jn-font-mono); font-size: 0.8125rem; }

/* ==========================================================================
   100. EXTRA EXTRA — utility positioners
   ========================================================================== */
.jn-pos-tl { position: absolute; top: 0; left: 0; }
.jn-pos-tr { position: absolute; top: 0; right: 0; }
.jn-pos-bl { position: absolute; bottom: 0; left: 0; }
.jn-pos-br { position: absolute; bottom: 0; right: 0; }
.jn-pos-tc { position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
.jn-pos-bc { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }
.jn-pos-cc { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

.jn-aspect-1   { aspect-ratio: 1 / 1; }
.jn-aspect-16-9{ aspect-ratio: 16 / 9; }
.jn-aspect-4-3 { aspect-ratio: 4 / 3; }
.jn-aspect-3-4 { aspect-ratio: 3 / 4; }

.jn-z-base    { z-index: var(--jn-z-base); }
.jn-z-rise    { z-index: var(--jn-z-rise); }
.jn-z-stick   { z-index: var(--jn-z-stick); }
.jn-z-nav     { z-index: var(--jn-z-nav); }
.jn-z-drawer  { z-index: var(--jn-z-drawer); }
.jn-z-overlay { z-index: var(--jn-z-overlay); }
.jn-z-modal   { z-index: var(--jn-z-modal); }
.jn-z-toast   { z-index: var(--jn-z-toast); }

.jn-opacity-0  { opacity: 0; }
.jn-opacity-25 { opacity: 0.25; }
.jn-opacity-50 { opacity: 0.5; }
.jn-opacity-75 { opacity: 0.75; }

.jn-blur-1 { filter: blur(2px); }
.jn-blur-2 { filter: blur(6px); }
.jn-blur-3 { filter: blur(12px); }
.jn-blur-4 { filter: blur(24px); }

.jn-grayscale { filter: grayscale(100%); }
.jn-invert    { filter: invert(100%); }

/* color-mix utility classes */
.jn-bg-blue-8   { background: color-mix(in srgb, var(--jn-blue-7) 80%, transparent); }
.jn-bg-orange-8 { background: color-mix(in srgb, var(--jn-orange) 80%, transparent); }

/* ==========================================================================
   101. LANDING — BENEFIT ROW (icon + text alternating)
   ========================================================================== */
.jn-benefit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--jn-s-9);
  padding-block: clamp(3rem, 8vw, 6rem);
}
.jn-benefit-alt { grid-template-columns: 1fr 1fr; }
.jn-benefit-alt > :first-child { grid-column: 2; }
.jn-benefit-alt > :last-child  { grid-column: 1; grid-row: 1; }
@media (max-width: 768px) {
  .jn-benefit, .jn-benefit-alt {
    grid-template-columns: 1fr;
    gap: var(--jn-s-6);
  }
  .jn-benefit-alt > :first-child { grid-column: 1; }
  .jn-benefit-alt > :last-child  { grid-row: auto; }
}

.jn-benefit-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jn-blue-7);
  margin-bottom: var(--jn-s-3);
}
.jn-benefit-title {
  font-family: var(--jn-font-display);
  font-size: clamp(1.5rem, 3vw + 1rem, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 var(--jn-s-4);
}
.jn-benefit-desc {
  font-size: 1.0625rem;
  color: var(--jn-text-muted);
  line-height: 1.55;
  max-width: 32rem;
}

.jn-benefit-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--jn-r-5);
  overflow: hidden;
  border: 1px solid var(--jn-border);
  background: var(--jn-ink-3);
  isolation: isolate;
}
.jn-benefit-visual::after {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at center, rgba(190, 194, 205,0.2), transparent 60%);
  filter: blur(40px);
  z-index: -1;
}

/* ==========================================================================
   102. WORKFLOW STEPS
   ========================================================================== */
.jn-workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--jn-s-5);
  position: relative;
  padding-block: var(--jn-s-7);
}
@media (max-width: 768px) { .jn-workflow { grid-template-columns: 1fr; } }
.jn-workflow-step {
  position: relative;
  padding: var(--jn-s-6);
  background: var(--jn-ink-3);
  border: 1px solid var(--jn-border);
  border-radius: var(--jn-r-4);
}
.jn-workflow-num {
  position: absolute;
  top: -18px;
  left: var(--jn-s-5);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--jn-blue-6), var(--jn-blue-4));
  color: white;
  font-family: var(--jn-font-display);
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  border: 4px solid var(--jn-ink-1);
  box-shadow: 0 4px 12px rgba(58,120,255,0.4);
}
.jn-workflow-step:nth-child(2) .jn-workflow-num {
  background: linear-gradient(135deg, var(--jn-iri-violet), var(--jn-blue-5));
}
.jn-workflow-step:nth-child(3) .jn-workflow-num {
  background: linear-gradient(135deg, var(--jn-orange), var(--jn-orange-deep));
  box-shadow: 0 4px 12px var(--jn-orange-glow);
}

/* ==========================================================================
   103. SUBTLE PARALLAX HOVER (cards)
   ========================================================================== */
.jn-parallax-card {
  perspective: 1000px;
  transform-style: preserve-3d;
}
.jn-parallax-card > * {
  transform: translateZ(20px);
  transition: transform var(--jn-t-base) var(--jn-ease-out);
}
.jn-parallax-card:hover > * {
  transform: translateZ(40px);
}

/* ==========================================================================
   104. BUTTON GROUP (sticky CTA)
   ========================================================================== */
.jn-sticky-cta {
  position: sticky;
  bottom: var(--jn-s-5);
  z-index: var(--jn-z-stick);
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   105. FINAL OVERRIDES
   ========================================================================== */
/* Make textarea / input native carets cobalt */
input, textarea { caret-color: var(--jn-orange); }

/* Range slider */
.jn-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--jn-ink-5);
  border-radius: 999px;
  outline: none;
  margin: var(--jn-s-3) 0;
}
.jn-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--jn-blue-7);
  cursor: pointer;
  border: 2px solid var(--jn-ink-1);
  box-shadow: 0 0 0 0 var(--jn-orange-glow);
  transition: box-shadow var(--jn-t-fast);
}
.jn-range:active::-webkit-slider-thumb {
  box-shadow: 0 0 0 6px var(--jn-orange-glow-2);
}
.jn-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--jn-blue-7);
  cursor: pointer;
  border: 2px solid var(--jn-ink-1);
}

/* Subtle glow on selection */
::selection {
  background: var(--jn-orange);
  color: white;
}

/* ==========================================================================
   106. CHAT IMAGE THUMBNAILS + LIGHTBOX
   ========================================================================== */
.chat-img-wrap {
  position: relative;
  display: inline-block;
  max-width: 240px;
  max-height: 240px;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--jn-ink-2);
  border: 1px solid var(--jn-border);
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--jn-t-fast) var(--jn-ease-out), border-color var(--jn-t-fast);
  outline: none;
}
.chat-img-wrap:hover {
  border-color: var(--jn-border-strong);
  transform: translateY(-1px);
}
.chat-img-wrap:focus-visible {
  border-color: var(--jn-orange);
  box-shadow: 0 0 0 2px rgba(184, 188, 200,0.3);
}
.chat-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 240px;
  max-height: 240px;
  object-fit: cover;
}

.msg-images .chat-img-wrap { max-width: 200px; max-height: 200px; }
.msg-images .chat-img-wrap img { max-width: 200px; max-height: 200px; }

/* AI-generated images (assistant bubbles) — slightly larger */
.msg-assistant .chat-img-wrap { max-width: 320px; max-height: 320px; }
.msg-assistant .chat-img-wrap img { max-width: 320px; max-height: 320px; }

/* Hover-revealed download button */
.chat-img-dl {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--jn-t-fast) var(--jn-ease-out), transform var(--jn-t-fast) var(--jn-ease-out), background-color var(--jn-t-fast);
  cursor: pointer;
  pointer-events: none;
}
.chat-img-wrap:hover .chat-img-dl,
.chat-img-wrap:focus-visible .chat-img-dl {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.chat-img-dl:hover { background: rgba(0,0,0,0.88); border-color: var(--jn-orange); }

/* Touch devices: button always visible since there's no hover */
@media (pointer: coarse) {
  .chat-img-dl {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: rgba(0,0,0,0.55);
  }
}

/* Lightbox overlay */
.chat-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 4, 8, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  animation: jn-fade-in 200ms var(--jn-ease-out);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.chat-lightbox-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
}
.chat-lightbox-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color var(--jn-t-fast), border-color var(--jn-t-fast), transform var(--jn-t-fast);
}
.chat-lightbox-btn:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-1px);
}
.chat-lightbox-btn:active { transform: translateY(0); }
.chat-lightbox-dl {
  background: linear-gradient(180deg, var(--jn-orange), var(--jn-orange-deep));
  border-color: rgba(184, 188, 200,0.5);
  box-shadow: 0 6px 20px rgba(184, 188, 200,0.35);
}
.chat-lightbox-dl:hover {
  background: linear-gradient(180deg, #ff814a, var(--jn-orange));
}
.chat-lightbox-close {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
}
.chat-lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px 32px;
  cursor: zoom-out;
  overflow: hidden;
}
.chat-lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  cursor: default;
  animation: jn-scale-in 220ms var(--jn-ease-out-strong);
}

@media (max-width: 640px) {
  .chat-lightbox-bar { padding: 10px 12px; }
  .chat-lightbox-stage { padding: 4px 8px 16px; }
  .chat-lightbox-btn { padding: 7px 12px; font-size: 12px; }
}

/* ==========================================================================
   107. AI IMAGE-GENERATION LOADER (inline in assistant bubble)
   ========================================================================== */
.image-loader {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(190, 194, 205,0.06), rgba(184, 188, 200,0.06));
  border: 1px solid var(--jn-border);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.image-loader::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(190, 194, 205,0.25), transparent 40%, rgba(184, 188, 200,0.25));
  filter: blur(14px);
  z-index: -1;
  animation: jn-pulse-soft 2s ease-in-out infinite;
}
.image-loader-svg {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}
.image-loader-svg .il-orb {
  transform-origin: center;
  animation: jn-breathe 1.8s ease-in-out infinite;
}
.image-loader-svg .il-ring {
  transform-origin: 60px 60px;
  animation: jn-spin 2.4s linear infinite;
}
.image-loader-svg .il-ring-2 {
  transform-origin: 60px 60px;
  animation: jn-spin-reverse 6s linear infinite;
}
.image-loader-svg .il-sparks circle {
  transform-origin: center;
  animation: jn-pulse 1.4s ease-in-out infinite;
}
.image-loader-svg .il-sparks circle:nth-child(2) { animation-delay: 0.2s; }
.image-loader-svg .il-sparks circle:nth-child(3) { animation-delay: 0.4s; }
.image-loader-svg .il-sparks circle:nth-child(4) { animation-delay: 0.6s; }

.image-loader-text { flex: 1; min-width: 0; }
.image-loader-title {
  font-family: var(--jn-font-display);
  font-size: 0.9375rem;
  font-weight: 650;
  background: linear-gradient(110deg, var(--jn-iri-cyan) 35%, var(--jn-orange-soft) 50%, var(--jn-iri-cyan) 65%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: jn-text-shimmer 2.4s var(--jn-ease-in-out) infinite;
  margin-bottom: 2px;
}
.image-loader-prompt {
  font-size: 0.8125rem;
  color: var(--jn-text-faint);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
  .image-loader::before,
  .image-loader-svg .il-orb,
  .image-loader-svg .il-ring,
  .image-loader-svg .il-ring-2,
  .image-loader-svg .il-sparks circle,
  .image-loader-title { animation: none !important; }
}

/* ==========================================================================
   108. THINKING LOADER (shown while AI reasons before the first token)
   ========================================================================== */
.thinking-loader {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(190, 194, 205,0.06), rgba(106,77,255,0.04));
  border: 1px solid var(--jn-border);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--jn-text-muted);
}
.thinking-svg { flex-shrink: 0; }
.thinking-svg .tk-orb {
  transform-origin: 32px 32px;
  animation: jn-breathe 2.2s ease-in-out infinite;
}
.thinking-svg .tk-ring {
  transform-origin: 32px 32px;
  animation: jn-spin 2.4s linear infinite;
}
.thinking-text {
  background: linear-gradient(110deg, var(--jn-iri-cyan) 35%, var(--jn-orange-soft) 50%, var(--jn-iri-cyan) 65%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: jn-text-shimmer 2.4s var(--jn-ease-in-out) infinite;
  transition: opacity 200ms;
  font-weight: 600;
}
.thinking-dots {
  display: inline-flex;
  gap: 3px;
}
.thinking-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--jn-text-faint);
  animation: jn-typing-bounce 1.2s ease-in-out infinite;
}
.thinking-dots span:nth-child(2) { animation-delay: 150ms; }
.thinking-dots span:nth-child(3) { animation-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .thinking-svg .tk-orb,
  .thinking-svg .tk-ring,
  .thinking-text,
  .thinking-dots span { animation: none !important; }
}

/* =====================================================================
   109. Neural Expressive — neon halos (Gemini iOS-inspired)
   Two blurred halos cross-fade across four states:
     .neon-idle       — bottom halo, slow cycling warm colors (yellow→red→green)
     .neon-typing     — bottom halo turns blue
     .neon-thinking   — bottom fades out, top halo rises with warm yellow/red
     .neon-streaming  — top halo continues, soft rainbow drift
   The halos are anchored: bottom near the composer, top above the chat.
   ===================================================================== */
.neon-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.neon-halo {
  position: absolute;
  left: 50%;
  width: 140vmin;
  height: 60vmin;
  transform: translateX(-50%);
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0;
  /* Note: mix-blend-mode is intentionally omitted. iOS Safari refuses to
     blend through position:fixed + backdrop-filter ancestors, so the halos
     would vanish there. We rely on raw opacity over the dark body bg
     instead — visually nearly identical on a near-black background. */
  transition:
    opacity   900ms cubic-bezier(.4,0,.2,1),
    transform 1600ms cubic-bezier(.45,0,.25,1),
    background 900ms cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform, background, filter;
}

.neon-halo-bottom { bottom: -10vh; }
.neon-halo-top    { top: -22vh; }

/* ---------- IDLE ----------
   Bottom halo is a fixed warm gradient; we cycle hue smoothly via
   hue-rotate so the perceived color flows yellow→red→green→yellow
   without any "teleport" between keyframes. */
body.neon-idle .neon-halo-bottom {
  opacity: 0.7;
  background: radial-gradient(ellipse at 50% 70%,
    rgba(255,255,255,0.92) 0%,
    rgba(228,236,255,0.42) 28%,
    transparent 68%);
  animation: neon-idle-hue 14s linear infinite;
}
body.neon-idle .neon-halo-top { opacity: 0; }

@keyframes neon-idle-hue {
  0%   { filter: blur(90px) hue-rotate(  0deg); }
  33%  { filter: blur(90px) hue-rotate(-55deg); } /* red */
  66%  { filter: blur(90px) hue-rotate( 70deg); } /* green */
  100% { filter: blur(90px) hue-rotate(360deg); }
}

/* ---------- TYPING: bottom halo turns blue, gentle pulse ---------- */
body.neon-typing .neon-halo-bottom {
  opacity: 0.85;
  background: radial-gradient(ellipse at 50% 70%,
    rgba(90,170,255,0.95) 0%,
    rgba(70,140,255,0.5) 30%,
    transparent 70%);
  animation: neon-typing-pulse 2.6s ease-in-out infinite;
}
body.neon-typing .neon-halo-top { opacity: 0; }

@keyframes neon-typing-pulse {
  0%, 100% { transform: translateX(-50%) translateY(0)    scale(1);    }
  50%      { transform: translateX(-50%) translateY(-2vh) scale(1.04); }
}

/* ---------- THINKING ----------
   The energy "rises" from the composer area to the top of the chat. We
   move the bottom halo upward as it fades, and bring the top halo in with
   a slight delay + matching upward motion so the two halos visually
   hand off the glow — no teleport, no gap in the middle. */
body.neon-thinking .neon-halo-bottom {
  opacity: 0;
  animation: none;
  transform: translateX(-50%) translateY(-55vh) scale(0.85);
  transition:
    opacity   1200ms cubic-bezier(.4,0,.2,1),
    transform 1600ms cubic-bezier(.45,0,.25,1);
}
body.neon-thinking .neon-halo-top {
  opacity: 0.85;
  background: radial-gradient(ellipse at 50% 30%,
    rgba(255,255,255,0.92) 0%,
    rgba(228,236,255,0.42) 35%,
    transparent 72%);
  /* Start slightly below, glide up — matches the bottom halo's upward motion */
  animation: neon-thinking-rise 1600ms cubic-bezier(.45,0,.25,1) both,
             neon-thinking-pulse 1.6s ease-in-out 1600ms infinite;
}

@keyframes neon-thinking-rise {
  0%   { opacity: 0;    transform: translateX(-50%) translateY(35vh) scale(0.85); }
  100% { opacity: 0.85; transform: translateX(-50%) translateY(0)    scale(1);    }
}
@keyframes neon-thinking-pulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1;   }
}

/* ---------- STREAMING: top continues, gentle horizontal drift ---------- */
body.neon-streaming .neon-halo-bottom {
  opacity: 0;
  animation: none;
  transform: translateX(-50%) translateY(-55vh) scale(0.85);
}
body.neon-streaming .neon-halo-top {
  opacity: 0.85;
  background: radial-gradient(ellipse at 50% 30%,
    rgba(255,255,255,0.9) 0%,
    rgba(228,236,255,0.42) 35%,
    transparent 72%);
  animation: neon-streaming-drift 5s ease-in-out infinite;
}

@keyframes neon-streaming-drift {
  0%, 100% { transform: translateX(-50%) translateX(0)    translateY(0); }
  50%      { transform: translateX(-50%) translateX(3vw)  translateY(-1vh); }
}

/* Make sure app shell sits ABOVE the neon layer (z:0) but keep the original
   z-order intact: topbar and composer-wrap need to float ABOVE chat content
   so their dropdowns (model menu z:30) aren't covered by welcome/messages. */
#app, .main { position: relative; z-index: 1; }
.messages, .welcome { position: relative; z-index: 1; }
.topbar      { position: relative; z-index: 20; }
.composer-wrap { position: relative; z-index: 20; }
/* sidebar/backdrop/lock/boot keep their original z-index from styles.css */

/* CRITICAL: the existing layout fills .app/.main with --bg (solid). Strip
   that so the neon background underneath becomes visible. .messages-inner
   may have its own background too — kill that. */
.app, .main, .messages, .messages-inner, .welcome { background: transparent !important; }

/* Soften app background panels so neon shows through */
[data-theme="dark"] body { background: #06080c; }
[data-theme="dark"] .topbar {
  background: rgba(10, 12, 18, 0.4) !important;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
[data-theme="dark"] .composer-wrap {
  background: rgba(10, 12, 18, 0.35) !important;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
[data-theme="light"] .composer-wrap {
  background: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
/* Sidebar — keep mostly opaque so its content stays readable */
[data-theme="dark"] .sidebar {
  background: rgba(10, 12, 18, 0.75) !important;
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}

@media (prefers-reduced-motion: reduce) {
  .neon-halo { animation: none !important; }
}

/* =====================================================================
   110. Neural Expressive — pill composer + tools row (Phase 2)
   ===================================================================== */

/* Pill-shaped composer (Gemini iOS) */
.composer {
  border-radius: 999px !important;
  padding: 6px 8px 6px 14px !important;
  background: rgba(28, 30, 38, 0.65) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .composer {
  background: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}
.composer:focus-within {
  border-color: rgba(120, 170, 255, 0.4) !important;
  box-shadow: 0 8px 28px rgba(80, 140, 255, 0.25), 0 0 0 1px rgba(120, 170, 255, 0.3);
}

/* When attachments are present we revert to slightly less rounded so the
   pill becomes a "stadium" rectangle that still hugs the content nicely */
.composer:has(.attachments:not([hidden])) {
  border-radius: 28px !important;
  padding: 10px 12px !important;
}

/* The "+" plus button replaces the paperclip — bigger hit area, brighter */
.composer-plus {
  width: 36px !important;
  height: 36px !important;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text) !important;
}
[data-theme="light"] .composer-plus {
  background: rgba(0, 0, 0, 0.05);
}
.composer-plus:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}
[data-theme="light"] .composer-plus:hover {
  background: rgba(0, 0, 0, 0.08) !important;
}

/* Tools row on welcome screen — horizontally scrollable on small screens */
.tools-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  max-width: 720px;
}
@media (max-width: 640px) {
  .tools-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 4px 16px;
    margin-left: -16px;
    margin-right: -16px;
    scrollbar-width: none;
  }
  .tools-row::-webkit-scrollbar { display: none; }
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    transform 200ms ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
[data-theme="light"] .tool-chip {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(0, 0, 0, 0.08);
}
.tool-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
[data-theme="light"] .tool-chip:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.14);
}
.tool-chip:active { transform: translateY(0); }

.tool-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.tool-chip:hover .tool-chip-icon { color: var(--text); }

/* "soon" badge */
.tool-chip-soon {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 200, 90, 0.9);
  background: rgba(255, 200, 90, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 2px;
}

/* "Create image" is the working tool — give it the accent treatment */
.tool-chip[data-tool="image"] {
  background: rgba(120, 170, 255, 0.12);
  border-color: rgba(120, 170, 255, 0.25);
}
.tool-chip[data-tool="image"] .tool-chip-icon {
  color: rgba(150, 195, 255, 1);
}
.tool-chip[data-tool="image"]:hover {
  background: rgba(120, 170, 255, 0.2);
  border-color: rgba(120, 170, 255, 0.4);
}

/* Deep-research source citations */
.chat-sources {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(120, 170, 255, 0.06);
  border: 1px solid rgba(120, 170, 255, 0.18);
}
.chat-sources-head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(150, 195, 255, 0.95);
  margin-bottom: 8px;
}
.chat-sources-list {
  margin: 0;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.55;
}
.chat-sources-list li { margin: 4px 0; }
.chat-sources-list a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(120, 170, 255, 0.3);
  transition: border-color 150ms ease;
}
.chat-sources-list a:hover {
  border-color: rgba(120, 170, 255, 0.7);
}

/* Document attachment cards — PDF, DOCX, TXT, MD. Liquid Glass with a
   format-tinted accent stripe. Used by both the streaming "doc-loading"
   placeholder and the final downloadable card. */
.doc-card {
  --doc-accent: #c2c7d3;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 12px 14px;
  max-width: 420px;
  border-radius: 14px;
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--doc-accent) 14%, transparent),
    color-mix(in oklab, var(--doc-accent) 4%, transparent) 70%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid color-mix(in oklab, var(--doc-accent) 28%, rgba(255,255,255,0.08));
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 8px 24px rgba(0,0,0,0.35),
    0 0 0 1px color-mix(in oklab, var(--doc-accent) 8%, transparent);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.doc-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--doc-accent), transparent);
  border-radius: 14px 0 0 14px;
}
.doc-card:hover:not(.doc-card-loading) {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--doc-accent) 50%, rgba(255,255,255,0.12));
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 14px 36px rgba(0,0,0,0.45),
    0 0 0 1px color-mix(in oklab, var(--doc-accent) 18%, transparent),
    0 0 32px color-mix(in oklab, var(--doc-accent) 18%, transparent);
}
.doc-card-icon {
  position: relative;
  width: 42px; height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklab, var(--doc-accent) 14%, rgba(255,255,255,0.04));
  border: 1px solid color-mix(in oklab, var(--doc-accent) 22%, rgba(255,255,255,0.08));
  border-radius: 8px;
  color: var(--doc-accent);
}
.doc-card-badge {
  position: absolute;
  bottom: -6px; left: 50%;
  transform: translateX(-50%);
  background: var(--doc-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.doc-card-info {
  flex: 1;
  min-width: 0;
}
.doc-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--jn-text, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.doc-card-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-card-dl {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in oklab, var(--doc-accent) 14%, rgba(255,255,255,0.04));
  border: 1px solid color-mix(in oklab, var(--doc-accent) 22%, rgba(255,255,255,0.08));
  color: var(--doc-accent);
  transition: background 0.18s, transform 0.18s;
}
.doc-card:hover .doc-card-dl {
  background: var(--doc-accent);
  color: #fff;
  transform: scale(1.05);
}
.doc-card-loading {
  pointer-events: none;
  opacity: 0.92;
}
.doc-card-spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid color-mix(in oklab, var(--doc-accent) 30%, transparent);
  border-top-color: var(--doc-accent);
  animation: doc-spin 0.9s linear infinite;
}
@keyframes doc-spin { to { transform: rotate(360deg); } }

/* When a doc card sits inside the user's image strip, drop the margin */
.msg-images .doc-card { margin-top: 0; }
.user-stack .msg-images { display: flex; flex-direction: column; gap: 6px; }

/* AI-generated video — same look as image thumbs */
.chat-video-wrap {
  margin-top: 12px;
  max-width: 480px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.chat-video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
}

/* "Create video" chip — accent like image */
.tool-chip[data-tool="video"] {
  background: rgba(255, 140, 100, 0.1);
  border-color: rgba(255, 140, 100, 0.25);
}
.tool-chip[data-tool="video"] .tool-chip-icon {
  color: rgba(255, 180, 130, 1);
}
.tool-chip[data-tool="video"]:hover {
  background: rgba(255, 140, 100, 0.18);
  border-color: rgba(255, 140, 100, 0.4);
}

/* "Deep research" chip */
.tool-chip[data-tool="deep"] {
  background: rgba(140, 200, 160, 0.1);
  border-color: rgba(140, 200, 160, 0.25);
}
.tool-chip[data-tool="deep"] .tool-chip-icon {
  color: rgba(160, 215, 175, 1);
}
.tool-chip[data-tool="deep"]:hover {
  background: rgba(140, 200, 160, 0.18);
  border-color: rgba(140, 200, 160, 0.4);
}

/* Tiny toast for "coming soon" feedback */
.tool-toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(28, 30, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 13px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.tool-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* =====================================================================
   111. Phase 3 — micro-animations, typography & topbar/sidebar polish
   ===================================================================== */

/* Welcome screen typography — larger, softer, Gemini-like */
.welcome-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--text) 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: jn-welcome-in 600ms cubic-bezier(.2,0,.2,1);
}
@keyframes jn-welcome-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Message entry — fade + slide up, staggered feel */
.msg {
  animation: jn-msg-in 360ms cubic-bezier(.2,0,.2,1) both;
}
@keyframes jn-msg-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Buttons — subtle press-scale + smooth color transitions */
.send-btn,
.composer-icon-btn,
.icon-btn,
.tool-chip,
.pill,
.model-item,
.model-btn {
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 120ms ease,
    box-shadow 180ms ease;
}
.send-btn:active:not(:disabled),
.composer-icon-btn:active,
.icon-btn:active,
.tool-chip:active,
.pill:active {
  transform: scale(0.94);
}

/* Send button — Gemini-like glow when active */
.send-btn:not(:disabled) {
  background: linear-gradient(135deg, #b6bac6 0%, #9a9ca8 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(91, 141, 239, 0.35);
}
.send-btn:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(91, 141, 239, 0.5);
  transform: translateY(-1px);
}
.send-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.94);
  box-shadow: 0 2px 8px rgba(91, 141, 239, 0.4);
}

/* Suggestion pills — slide in stagger on welcome */
.suggestions .pill {
  animation: jn-pill-in 500ms cubic-bezier(.2,0,.2,1) both;
}
.suggestions .pill:nth-child(1) { animation-delay: 80ms; }
.suggestions .pill:nth-child(2) { animation-delay: 140ms; }
.suggestions .pill:nth-child(3) { animation-delay: 200ms; }
.suggestions .pill:nth-child(4) { animation-delay: 260ms; }
@keyframes jn-pill-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Tool chips — stagger too */
.tools-row .tool-chip {
  animation: jn-pill-in 500ms cubic-bezier(.2,0,.2,1) both;
}
.tools-row .tool-chip:nth-child(1) { animation-delay: 300ms; }
.tools-row .tool-chip:nth-child(2) { animation-delay: 360ms; }
.tools-row .tool-chip:nth-child(3) { animation-delay: 420ms; }

/* Model picker dropdown — soft shadow, smoother corners, Gemini-like */
.model-menu {
  border-radius: 16px !important;
  padding: 6px !important;
  background: rgba(20, 22, 30, 0.92) !important;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}
[data-theme="light"] .model-menu {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}
.model-menu .model-item {
  border-radius: 10px;
  margin: 2px 0;
}
.model-menu .model-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  transform: translateX(2px);
}
[data-theme="light"] .model-menu .model-item:hover {
  background: rgba(0, 0, 0, 0.04) !important;
}
.model-menu .model-item.is-active {
  background: rgba(120, 170, 255, 0.12) !important;
}

/* Model picker button — Gemini's gentle outline */
.model-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 14px !important;
}
.model-btn:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="light"] .model-btn:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08);
}

/* Sidebar conv items — active state with subtle accent line + glow */
.conv-item {
  position: relative;
  border-radius: 12px !important;
  transition:
    background-color 180ms ease,
    transform 120ms ease;
}
.conv-item:active { transform: scale(0.985); }
.conv-item.is-active {
  background: linear-gradient(
    90deg,
    rgba(120, 170, 255, 0.14) 0%,
    rgba(120, 170, 255, 0.04) 100%
  ) !important;
}
.conv-item.is-active::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #b6bac6, #9a9ca8);
}
[data-theme="light"] .conv-item.is-active {
  background: linear-gradient(
    90deg,
    rgba(80, 130, 240, 0.1) 0%,
    rgba(80, 130, 240, 0.02) 100%
  ) !important;
}

/* Sidebar "New chat" button — Gemini-style pill with subtle gradient */
.sidebar .new-chat-btn,
.sidebar a[href*="new"] {
  border-radius: 999px;
  transition: background-color 180ms ease, transform 120ms ease;
}
.sidebar .new-chat-btn:active,
.sidebar a[href*="new"]:active { transform: scale(0.97); }

/* Topbar refinement — tighter typography, taller hit area */
.topbar {
  padding: 10px 14px !important;
}
#model-label {
  font-weight: 500;
  letter-spacing: -0.01em;
}
.topbar .icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
}
.topbar .icon-btn:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}
[data-theme="light"] .topbar .icon-btn:hover {
  background: rgba(0, 0, 0, 0.04) !important;
}

/* Composer focus ring — softer, pulsing inner halo on focus */
.composer:focus-within {
  animation: jn-composer-focus-glow 2.4s ease-in-out infinite;
}
@keyframes jn-composer-focus-glow {
  0%, 100% { box-shadow: 0 8px 28px rgba(80, 140, 255, 0.22), 0 0 0 1px rgba(120, 170, 255, 0.3); }
  50%      { box-shadow: 0 8px 28px rgba(80, 140, 255, 0.32), 0 0 0 1px rgba(120, 170, 255, 0.45); }
}

@media (prefers-reduced-motion: reduce) {
  .msg,
  .welcome-title,
  .suggestions .pill,
  .tools-row .tool-chip { animation: none !important; }
  .composer:focus-within { animation: none !important; }
}

/* =====================================================================
   112. Inline voice mode v2 — large audio-reactive orb (Gemini iOS)
   When .composer has .is-voice-inline, the textarea and the Generate-image
   button hide, and a cinematic orb + transcript expand into the prompt area.
   ===================================================================== */

/* Composer expands vertically to fit the larger orb */
.composer.is-voice-inline {
  padding: 12px 16px 12px 14px !important;
  border-radius: 28px !important;
}

/* Default — hidden */
.voice-inline {
  display: none;
  flex: 1;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

/* Show in inline-voice mode; hide normal composer content */
.composer.is-voice-inline #prompt,
.composer.is-voice-inline #image-btn {
  display: none !important;
}
.composer.is-voice-inline .voice-inline {
  display: flex;
}

/* The "+" attach button hides too for a cleaner voice strip */
.composer.is-voice-inline .composer-plus { display: none !important; }

/* Voice button morphs into a stop indicator */
#voice-btn.is-active {
  background: linear-gradient(135deg, #ff5d5d 0%, #ff3a8c 100%) !important;
  color: #fff !important;
  width: 44px !important;
  height: 44px !important;
  animation: vi-stop-pulse 1.6s ease-in-out infinite;
}
#voice-btn.is-active svg path { stroke: #fff; }
@keyframes vi-stop-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 93, 93, 0.55), 0 6px 18px rgba(255, 93, 93, 0.35); }
  50%      { box-shadow: 0 0 0 10px rgba(255, 93, 93, 0), 0 6px 18px rgba(255, 93, 93, 0.6); }
}

/* The orb — 80px footprint, layered: canvas waveform + halo + rings + core */
.vi-orb-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.vi-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 160px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  /* Canvas extends beyond the orb so bars can radiate outward without clipping */
}
.vi-halo,
.vi-ring,
.vi-core {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.vi-halo {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(120,170,255,0.25) 0%, transparent 70%);
  filter: blur(8px);
}
.vi-core {
  width: 30px;
  height: 30px;
  background: conic-gradient(from 0deg,
    #b6bac6, #9a9ca8, #cfd1db, #d8dae2, #b6bac6);
  box-shadow:
    0 0 22px rgba(91, 141, 239, 0.55),
    inset 0 0 10px rgba(255, 255, 255, 0.25);
  animation: vi-core-spin 6s linear infinite;
}
@keyframes vi-core-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.vi-ring {
  width: 80px;
  height: 80px;
  border: 1.5px solid rgba(120, 170, 255, 0.5);
  opacity: 0;
  animation: vi-ring-pulse 2.4s cubic-bezier(.5,0,.5,1) infinite;
}
.vi-ring-2 { animation-delay: 0.8s; }
.vi-ring-3 { animation-delay: 1.6s; }
@keyframes vi-ring-pulse {
  0%   { opacity: 0.65; transform: translate(-50%, -50%) scale(0.55); }
  100% { opacity: 0;    transform: translate(-50%, -50%) scale(1.9); }
}

/* ----- State-specific palettes (orb colors morph smoothly) ----- */

/* Listening — calm blue/cyan */
.composer.is-voice-listening .vi-ring  { border-color: rgba(120, 200, 255, 0.6); }
.composer.is-voice-listening .vi-halo  { background: radial-gradient(circle, rgba(80,180,255,0.32) 0%, transparent 70%); }
.composer.is-voice-listening .vi-core  {
  background: conic-gradient(from 0deg, #4cc8ff, #b6bac6, #9a9ca8, #4cc8ff);
  box-shadow: 0 0 22px rgba(80, 180, 255, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.25);
}

/* Thinking — warm yellow/orange */
.composer.is-voice-thinking .vi-ring   { border-color: rgba(255, 200, 90, 0.6); }
.composer.is-voice-thinking .vi-halo   { background: radial-gradient(circle, rgba(255,180,80,0.32) 0%, transparent 70%); }
.composer.is-voice-thinking .vi-core   {
  background: conic-gradient(from 0deg, #dadce4, #d8dae2, #d0d3dc, #dadce4);
  box-shadow: 0 0 22px rgba(255, 180, 80, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.25);
  animation: vi-core-spin 3s linear infinite;
}

/* Speaking — violet/pink, faster breath */
.composer.is-voice-speaking .vi-ring   { border-color: rgba(200, 140, 255, 0.6); }
.composer.is-voice-speaking .vi-halo   { background: radial-gradient(circle, rgba(200,120,255,0.34) 0%, transparent 70%); }
.composer.is-voice-speaking .vi-core   {
  background: conic-gradient(from 0deg, #bcbec9, #cfd1db, #d0d3dc, #bcbec9);
  box-shadow: 0 0 22px rgba(200, 140, 255, 0.75), inset 0 0 10px rgba(255, 255, 255, 0.25);
  animation: vi-core-spin 4s linear infinite, vi-core-breath 1.2s ease-in-out infinite;
}
@keyframes vi-core-breath {
  0%, 100% { width: 30px; height: 30px; }
  50%      { width: 36px; height: 36px; }
}

/* ----- Text area: large status + transcript ----- */
.voice-inline-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.voice-inline-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(150, 195, 255, 0.9);
  transition: color 220ms ease;
}
.composer.is-voice-thinking .voice-inline-status { color: rgba(255, 200, 90, 0.95); }
.composer.is-voice-speaking .voice-inline-status { color: rgba(200, 140, 255, 0.95); }

.voice-inline-transcript {
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  min-height: 22px;
}

/* ----- Language switcher pill ----- */
.voice-inline-lang {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 3px;
  align-self: center;
}
[data-theme="light"] .voice-inline-lang {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.07);
}
.vi-lang-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: background 180ms ease, color 180ms ease, transform 120ms ease;
}
.vi-lang-btn:hover { color: var(--text); }
.vi-lang-btn:active { transform: scale(0.94); }
.vi-lang-btn.is-active {
  background: linear-gradient(135deg, #b6bac6, #9a9ca8);
  color: #fff;
  box-shadow: 0 2px 10px rgba(91, 141, 239, 0.4);
}

/* Inline mute toggle next to the language pills. Same visual rhythm
   as `.vi-lang-btn` so the strip feels like one cluster — circular,
   slightly larger touch target, hover-brighter, red wash when muted. */
.vi-mute {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-muted);
  cursor: pointer;
  align-self: center;
  transition: background 180ms ease, color 180ms ease, transform 120ms ease;
}
.vi-mute:hover { background: rgba(255, 255, 255, 0.10); color: var(--text); }
.vi-mute:active { transform: scale(0.94); }
.vi-mute .vm-off { display: none; }
.vi-mute.is-muted {
  background: rgba(255, 80, 80, 0.12);
  border-color: rgba(255, 100, 100, 0.30);
  color: rgba(255, 140, 140, 0.95);
}
.vi-mute.is-muted .vm-on  { display: none; }
.vi-mute.is-muted .vm-off { display: inline-flex; }
[data-theme="light"] .vi-mute {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.07);
}

/* ----- Mobile: stack tighter ----- */
@media (max-width: 520px) {
  .vi-orb-wrap { width: 64px; height: 64px; }
  .vi-halo, .vi-ring { width: 64px; height: 64px; }
  .vi-core { width: 24px; height: 24px; }
  .voice-inline-transcript { font-size: 14px; }
  .voice-inline-status { font-size: 10px; letter-spacing: 0.1em; }
  .voice-inline { gap: 12px; }
}
@media (max-width: 380px) {
  .voice-inline-lang { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vi-ring, .vi-core { animation: none !important; }
  #voice-btn.is-active { animation: none !important; }
}

/* =====================================================================
   113. Gemini-style welcome, pills, message bubbles, avatar polish
   ===================================================================== */

/* ----- Welcome layout: more vertical breathing room ----- */
.welcome-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  max-width: 720px;
  padding: 0 16px;
}

/* Brand avatar + drifting sparkle for the chat welcome state.
   Avatar is a circle with a soft orange halo (matches the artwork's own
   background), gently breathing. The sparkle floats off the top-right and
   slowly rotates. Same composition iOS/Mac render via BrandAvatarView. */
.welcome-brand {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 4px;
  animation: jn-welcome-brand-in 700ms cubic-bezier(.2,0,.2,1) both;
}
.welcome-brand-halo {
  position: absolute;
  inset: -32%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(232, 236, 244, 0.55) 0%,
    rgba(232, 236, 244, 0.0) 60%);
  filter: blur(18px);
  z-index: 0;
  animation: jn-welcome-brand-breathe 3.2s ease-in-out infinite;
}
.welcome-brand-img {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 16px 40px rgba(222, 227, 237, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.18);
  animation: jn-welcome-brand-breathe 3.2s ease-in-out infinite;
}
.welcome-brand-sparkle {
  position: absolute;
  top: -10px;
  right: -6px;
  z-index: 2;
  display: inline-flex;
  filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.55));
  animation: jn-spark-twirl 14s linear infinite;
}
@keyframes jn-welcome-brand-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.78); }
  to   { opacity: 1; transform: translateY(0)     scale(1);    }
}
@keyframes jn-welcome-brand-breathe {
  0%, 100% { transform: scale(1);   filter: brightness(1); }
  50%      { transform: scale(1.04); filter: brightness(1.08); }
}

/* Sparkle ✦ above the greeting (legacy — kept for non-chat pages) */
.welcome-spark {
  display: inline-flex;
  filter: drop-shadow(0 6px 24px rgba(120, 110, 255, 0.4));
  animation: jn-spark-in 700ms cubic-bezier(.2,0,.2,1) both, jn-spark-twirl 14s linear infinite;
}
@keyframes jn-spark-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.85); }
  to   { opacity: 1; transform: translateY(0)     scale(1);    }
}
@keyframes jn-spark-twirl {
  to { transform: rotate(360deg); }
}
.welcome-spark svg {
  display: block;
  /* Combine the entrance + the slow rotation. The rotation animation runs
     on the parent because we want the entrance translate effect on its own */
}

/* Bigger, softer welcome title */
.welcome-title {
  font-size: clamp(32px, 5.5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0;
  background: linear-gradient(120deg, var(--text) 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: jn-welcome-in 600ms cubic-bezier(.2,0,.2,1) 80ms both;
}

/* Suggestions row — pill with icon, Gemini-like */
.suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}
.suggestions .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    transform 120ms ease;
}
[data-theme="light"] .suggestions .pill {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(0, 0, 0, 0.07);
}
.suggestions .pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
[data-theme="light"] .suggestions .pill:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.14);
}
.pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(150, 195, 255, 0.95);
}
.suggestions .pill:hover .pill-icon { color: rgba(180, 215, 255, 1); }

/* ----- Message bubbles polish ----- */

/* User bubble — subtle blue tint, softer corners, tighter padding */
.msg-user .bubble {
  background: linear-gradient(135deg,
    rgba(91, 141, 239, 0.18) 0%,
    rgba(124, 92, 255, 0.14) 100%) !important;
  border: 1px solid rgba(120, 170, 255, 0.18);
  border-radius: 22px !important;
  padding: 11px 16px !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 15px;
  line-height: 1.5;
  max-width: 80%;
}
[data-theme="light"] .msg-user .bubble {
  background: linear-gradient(135deg,
    rgba(91, 141, 239, 0.12) 0%,
    rgba(124, 92, 255, 0.08) 100%) !important;
  border-color: rgba(91, 141, 239, 0.25);
}

/* Assistant area — slightly larger avatar, refined spacing */
.msg-assistant {
  gap: 12px;
}
.msg-avatar {
  width: 32px !important;
  height: 32px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.msg-body.markdown {
  font-size: 15px;
  line-height: 1.6;
  padding-top: 4px;
}

/* ----- Composer-hint: slightly more muted ----- */
.composer-hint {
  opacity: 0.6;
  font-size: 12px;
  letter-spacing: 0.01em;
}

/* ----- Welcome on narrow screens: tighter ----- */
@media (max-width: 480px) {
  .welcome-spark svg { width: 44px; height: 44px; }
  .welcome-inner { gap: 14px; }
  .suggestions .pill { font-size: 13px; padding: 8px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-spark { animation: none !important; }
}

/* ============================================================
   Temporary chat — neon halos go white but animations stay
   ============================================================ */
body.neon-temporary .neon-halo {
  /* Overrides the hued radials. The 0.85 / 0.65 keep some intensity tier so
     the halo is still visible against the dark background. */
  background: radial-gradient(closest-side,
                              rgba(255, 255, 255, 0.85),
                              rgba(255, 255, 255, 0.65) 35%,
                              rgba(255, 255, 255, 0.0) 70%) !important;
  filter: blur(60px) saturate(0) !important;
}
body.neon-temporary .neon-halo-bottom,
body.neon-temporary .neon-halo-top {
  /* Disable hue-rotate from individual state animations — saturation:0
     desaturates anyway but skipping the cycle saves a smidge of CPU. */
  animation-name: none !important;
  opacity: 0.95 !important;
}

/* ============================================================
   Sidebar new-chat row (regular + temp side-by-side)
   ============================================================ */
.new-chat-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 12px 0 8px;
}
.new-chat-row .btn-newchat { flex: 1; margin: 0; }
.icon-btn-temp {
  flex-shrink: 0;
  width: 38px;
  height: auto;
  border-radius: var(--r-3, 10px);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.icon-btn-temp:hover { background: var(--bg-hover); color: var(--text); }

/* ============================================================
   Plus-button popover — Gemini-style action menu above composer
   ============================================================ */
.plus-menu {
  position: absolute;
  left: 12px;
  bottom: calc(100% + 8px);
  min-width: 240px;
  background: rgba(16, 16, 16, 0.94);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 80;
  transform-origin: bottom left;
  animation: plus-menu-in 160ms cubic-bezier(.2, .8, .2, 1);
}
.composer-wrap { position: relative; }
@keyframes plus-menu-in {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.plus-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 14px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: background 120ms ease;
}
.plus-item:hover { background: rgba(255, 255, 255, 0.06); }
.plus-item svg { flex-shrink: 0; color: rgba(255, 255, 255, 0.72); }
.plus-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 8px;
}
.composer-icon-btn.composer-plus.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ============================================================
   Download pages — /download, /download/mac, /download/ios
   ============================================================ */

/* The background lives on <body class="dl-body"> so the aurora gradients
   cover the full viewport regardless of how short the page is. */
.dl-body {
  margin: 0;
  min-height: 100vh;
  color: #fff;
  background: radial-gradient(ellipse 100% 70% at 50% 0%,
                              rgba(91, 141, 239, 0.10) 0%,
                              rgba(91, 141, 239, 0.0) 60%),
              #06080c;
  overflow-x: hidden;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif);
}

/* ---- Aurora background: three slow-drifting color blobs + grid wash ---- */
.dl-aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.dl-aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: dl-blob-drift 22s ease-in-out infinite;
  will-change: transform;
}
.dl-aurora-blob-1 {
  width: 520px; height: 520px;
  top: -120px; left: -100px;
  background: radial-gradient(circle, #b6bac6 0%, transparent 65%);
  animation-delay: -2s;
}
.dl-aurora-blob-2 {
  width: 460px; height: 460px;
  top: 30%; right: -120px;
  background: radial-gradient(circle, #b4b6c2 0%, transparent 65%);
  animation-delay: -10s;
}
.dl-aurora-blob-3 {
  width: 600px; height: 600px;
  bottom: -160px; left: 20%;
  background: radial-gradient(circle, #ff7a59 0%, transparent 60%);
  animation-delay: -16s;
  opacity: 0.42;
}
.dl-aurora-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px) 0 0/56px 56px,
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px) 0 0/56px 56px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 35%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 35%, #000 30%, transparent 80%);
  opacity: 0.6;
}

@keyframes dl-blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 40px) scale(0.94); }
}

/* ---- Page wrapper ---- */
.dl-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.dl-head {
  padding: 22px 28px;
  animation: dl-fade-in 0.6s ease-out both;
}
.dl-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color 0.18s, background 0.18s, border-color 0.18s, transform 0.18s;
}
.dl-back:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateX(-2px);
}
.dl-back svg { opacity: 0.7; transition: opacity 0.18s; }
.dl-back:hover svg { opacity: 1; }

.dl-main {
  flex: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 28px 80px;
  width: 100%;
}

/* ---- Hero (sparkle + title + subtitle) ---- */
.dl-hero {
  text-align: left;
  margin-bottom: 36px;
  animation: dl-fade-up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.08s both;
}
.dl-sparkle {
  display: inline-block;
  filter: drop-shadow(0 0 24px rgba(167, 139, 250, 0.45))
          drop-shadow(0 0 48px rgba(91, 141, 239, 0.25));
  animation: dl-sparkle-pulse 4.5s ease-in-out infinite;
  margin-bottom: 14px;
}
@keyframes dl-sparkle-pulse {
  0%, 100% { transform: rotate(0deg) scale(1);   opacity: 0.95; }
  50%      { transform: rotate(180deg) scale(1.1); opacity: 1; }
}
.dl-title {
  font-size: clamp(34px, 6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.05;
  margin: 0 0 12px;
  color: #fff;
}
.dl-title-grad {
  background: linear-gradient(110deg, #ffffff 0%, #c8d6ff 35%, #ffffff 60%, #ffd6c5 95%);
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: dl-grad-shift 7s ease-in-out infinite;
}
@keyframes dl-grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.dl-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.55;
  max-width: 520px;
}

/* ---- Cards grid (download.html) ---- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.dl-card {
  position: relative;
  display: block;
  padding: 26px 24px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.28s,
    box-shadow 0.28s;
  animation: dl-fade-up 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) var(--dl-delay, 0s) both;
}
.dl-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 60%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.dl-card-glow {
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%,
                              rgba(91, 141, 239, 0.35),
                              transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.dl-card--ios .dl-card-glow {
  background: radial-gradient(circle at 50% 50%,
                              rgba(167, 139, 250, 0.40),
                              transparent 60%);
}
.dl-card--mac .dl-card-glow {
  background: radial-gradient(circle at 50% 50%,
                              rgba(200, 200, 200, 0.30),
                              transparent 60%);
}
.dl-card:hover {
  transform: translateY(-4px) scale(1.005);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.dl-card:hover .dl-card-glow { opacity: 1; }

.dl-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.dl-card:hover .dl-card-icon { transform: translateY(-2px) scale(1.04) rotate(-2deg); }
.dl-card-icon-mac {
  background: linear-gradient(135deg, #f0f0f0 0%, #b0b0b0 100%);
  color: #1c1c1c;
}
.dl-card-icon-ios {
  background: linear-gradient(135deg, #b6bac6 0%, #b4b6c2 100%);
  color: #fff;
}
.dl-card-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
  color: #fff;
}
.dl-card-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 18px;
  line-height: 1.55;
}
.dl-card-desc code {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.dl-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #d6d9e0;
  letter-spacing: 0.2px;
  transition: gap 0.22s, color 0.22s;
}
.dl-card-cta svg { transition: transform 0.22s; }
.dl-card:hover .dl-card-cta { gap: 10px; color: #fff; }
.dl-card:hover .dl-card-cta svg { transform: translateX(2px); }
.dl-card--ios .dl-card-cta { color: #d4c5ff; }
.dl-card--mac .dl-card-cta { color: #e8e8e8; }

.dl-note {
  margin-top: 44px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
  animation: dl-fade-in 0.8s 0.35s ease-out both;
}
.dl-note a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.35);
  transition: color 0.2s, border-color 0.2s;
}
.dl-note a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.7); }

/* ---- Detail page hero (mac.html / ios.html platform icon) ---- */
.dl-platform-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: dl-icon-float 6s ease-in-out infinite;
}
.dl-platform-icon::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(91, 141, 239, 0.40), transparent 65%);
  z-index: -1;
  filter: blur(20px);
}
@keyframes dl-icon-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ---- Primary CTA button with shimmer sweep ---- */
.dl-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #b6bac6 0%, #9a9ca8 50%, #b4b6c2 100%);
  background-size: 200% 100%;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1px;
  text-decoration: none;
  margin: 12px 0 36px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 14px 40px rgba(91, 141, 239, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.22s,
    background-position 0.6s ease;
  animation: dl-fade-up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.18s both;
}
.dl-cta:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow:
    0 18px 50px rgba(124, 92, 255, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.dl-cta:active { transform: translateY(0); }
.dl-cta-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: dl-shine-sweep 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes dl-shine-sweep {
  0%, 60% { left: -100%; }
  100%    { left: 160%; }
}

/* ---- Install steps card ---- */
.dl-steps {
  margin-top: 20px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  animation: dl-fade-up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.28s both;
}
.dl-steps::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 60%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.dl-steps h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(184, 208, 255, 0.85);
  margin: 0 0 18px;
}
.dl-steps ol {
  margin: 0;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.75;
  counter-reset: dl-step;
  list-style: none;
}
.dl-steps ol li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 4px;
}
.dl-steps ol li::before {
  counter-increment: dl-step;
  content: counter(dl-step);
  position: absolute;
  left: -28px;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(91, 141, 239, 0.35), rgba(167, 139, 250, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #e0e2e7;
  font-feature-settings: "tnum";
}
.dl-steps code,
.dl-steps kbd {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 7px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  color: #e0e2e7;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.dl-steps strong { color: #fff; font-weight: 600; }
.dl-steps a {
  color: #d6d9e0;
  text-decoration: none;
  border-bottom: 1px dotted rgba(184, 208, 255, 0.45);
  transition: color 0.2s, border-color 0.2s;
}
.dl-steps a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.dl-tip {
  margin: 18px 0 0;
  padding: 12px 14px;
  background: rgba(91, 141, 239, 0.08);
  border-left: 3px solid rgba(91, 141, 239, 0.55);
  border-radius: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}
.dl-tip a { color: #d6d9e0; text-decoration: none; border-bottom: 1px dotted rgba(184, 208, 255, 0.5); }
.dl-tip a:hover { color: #fff; }

/* ---- Shared entrance animations ---- */
@keyframes dl-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes dl-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .dl-aurora-blob,
  .dl-sparkle,
  .dl-title-grad,
  .dl-cta-shine,
  .dl-platform-icon {
    animation: none;
  }
  .dl-card, .dl-cta, .dl-steps, .dl-hero, .dl-head, .dl-note {
    animation: none;
  }
}

/* ============================================================
   Floating "API Status" chip — present on every page via
   /js/status-pill.js. Bottom-left corner, glassmorphism, color-
   coded dot (operational / degraded / down).
   ============================================================ */
.status-pill {
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(20, 23, 30, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
  pointer-events: auto;
}
.status-pill:hover {
  transform: translateY(-1px);
  background: rgba(28, 32, 40, 0.7);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.status-pill-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
  animation: status-pill-pulse 2.4s ease-in-out infinite;
}
.status-pill[data-state="operational"] .status-pill-dot {
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18),
              0 0 14px rgba(74, 222, 128, 0.6);
}
.status-pill[data-state="degraded"] .status-pill-dot {
  background: #cfd0d6;
  box-shadow: 0 0 0 3px rgba(210, 214, 224, 0.18),
              0 0 14px rgba(210, 214, 224, 0.55);
}
.status-pill[data-state="down"] .status-pill-dot {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18),
              0 0 14px rgba(239, 68, 68, 0.6);
}
.status-pill.is-loading .status-pill-dot {
  background: rgba(255, 255, 255, 0.5);
}
@keyframes status-pill-pulse {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%      { transform: scale(0.85); opacity: 0.65; }
}
@media (prefers-reduced-motion: reduce) {
  .status-pill-dot { animation: none; }
}
@media (max-width: 540px) {
  .status-pill-label { display: none; }
  .status-pill { padding: 8px; }
}

/* ============================================================
   /status.html page — the full board.
   Reuses .dl-* aurora background + hero. Adds .st-* rows.
   ============================================================ */
.st-body .status-pill { display: none; }  /* don't show pill on /status itself */

.st-hero { text-align: center; }
.st-hero .dl-title { text-align: left; }
.st-hero { text-align: left; }

.st-shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 22px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  transition: background 0.4s, color 0.4s, box-shadow 0.4s, border-color 0.4s;
}
.st-shield[data-state="operational"] {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.18), rgba(74, 222, 128, 0.04));
  border-color: rgba(74, 222, 128, 0.32);
  color: #4ade80;
  box-shadow: 0 16px 40px rgba(74, 222, 128, 0.25),
              0 0 0 1px rgba(74, 222, 128, 0.12) inset;
}
.st-shield[data-state="degraded"] {
  background: linear-gradient(135deg, rgba(210, 214, 224, 0.18), rgba(210, 214, 224, 0.04));
  border-color: rgba(210, 214, 224, 0.32);
  color: #cfd0d6;
  box-shadow: 0 16px 40px rgba(210, 214, 224, 0.22);
}
.st-shield[data-state="down"] {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(239, 68, 68, 0.04));
  border-color: rgba(239, 68, 68, 0.32);
  color: #ef4444;
  box-shadow: 0 16px 40px rgba(239, 68, 68, 0.25);
}
.st-shield[data-state="loading"] svg { animation: st-shield-spin 1.4s linear infinite; }
@keyframes st-shield-spin { to { transform: rotate(360deg); } }

.st-meta {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
}
.st-dot-sep { opacity: 0.4; }
.st-refresh {
  appearance: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.st-refresh:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.st-refresh svg { transition: transform 0.6s ease; }
.st-refresh.is-spinning svg { transform: rotate(360deg); }

.st-section {
  margin-top: 32px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}
.st-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(184, 208, 255, 0.85);
  margin: 0 0 16px;
}
.st-rows { display: flex; flex-direction: column; gap: 8px; }
.st-section[data-loading] .st-rows:empty::before {
  content: "Loading…";
  display: block;
  padding: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.st-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.st-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(1px);
}
.st-row-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}
.st-row[data-state="operational"] .st-row-dot {
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}
.st-row[data-state="degraded"] .st-row-dot {
  background: #cfd0d6;
  box-shadow: 0 0 10px rgba(210, 214, 224, 0.5);
}
.st-row[data-state="down"] .st-row-dot {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.55);
  animation: st-row-down-blink 1.6s ease-in-out infinite;
}
@keyframes st-row-down-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}
.st-row-text { display: flex; flex-direction: column; min-width: 0; }
.st-row-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.st-row-detail {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-row-latency {
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(255, 255, 255, 0.55);
  font-feature-settings: "tnum";
}
.st-row-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
}
.st-row[data-state="operational"] .st-row-status {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.10);
  border-color: rgba(74, 222, 128, 0.25);
}
.st-row[data-state="degraded"] .st-row-status {
  color: #cfd0d6;
  background: rgba(210, 214, 224, 0.10);
  border-color: rgba(210, 214, 224, 0.25);
}
.st-row[data-state="down"] .st-row-status {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.30);
}
@media (max-width: 540px) {
  .st-row {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }
  .st-row-latency { display: none; }
}

/* Tilt-card spotlight overlay — sibling element added by polish.js, sits
   on top of card content via absolute positioning + pointer-events none. */
.tilt-card {
  position: relative;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}
.tilt-card-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  mix-blend-mode: overlay;
  transition: background 0.18s ease;
}

/* ============================================================
   Download nag modal — in-chat popover for Mac / iOS users
   ============================================================ */
.dl-nag {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.dl-nag[hidden] { display: none; }
.dl-nag-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: auto;
  opacity: 0;
  transition: opacity 220ms ease;
}
.dl-nag.is-open .dl-nag-backdrop { opacity: 1; }
.dl-nag-card {
  position: relative;
  z-index: 1;
  max-width: 360px;
  width: calc(100% - 28px);
  margin: 0 14px max(28px, env(safe-area-inset-bottom));
  padding: 22px 22px 18px;
  border-radius: 20px;
  background: rgba(20, 22, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
  pointer-events: auto;
  transform: translateY(28px);
  opacity: 0;
  transition: transform 280ms cubic-bezier(.2,.8,.2,1), opacity 220ms ease;
}
.dl-nag.is-open .dl-nag-card { transform: translateY(0); opacity: 1; }
.dl-nag-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.dl-nag-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.dl-nag-icon {
  width: 64px; height: 64px;
  margin: 6px auto 12px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #b6bac6, #9a9ca8);
  box-shadow: 0 10px 30px rgba(91, 141, 239, 0.32);
}
.dl-nag-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
}
.dl-nag-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 18px;
  line-height: 1.55;
}
.dl-nag-cta {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #b6bac6, #9a9ca8);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 22px rgba(91, 141, 239, 0.34);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.dl-nag-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(91, 141, 239, 0.50); }
.dl-nag-cta:active { transform: translateY(0); }
.dl-nag-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.dl-nag-checkbox input { accent-color: #9a9ca8; }

/* ============================================================
   Sidebar "Get the app" button
   ============================================================ */
.sidebar-download-row {
  margin: 8px 12px 4px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  background: rgba(91, 141, 239, 0.10);
  border: 1px solid rgba(91, 141, 239, 0.22);
  color: #d7dae1;
  font-size: 12px;
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.sidebar-download-row:hover {
  background: rgba(91, 141, 239, 0.18);
  border-color: rgba(91, 141, 239, 0.36);
  color: #e4e6ea;
}
.sidebar-download-row svg { flex-shrink: 0; }
.sidebar-download-row strong { color: #fff; font-weight: 600; }
.sidebar-download-row[hidden] { display: none; }

} /* end @layer redesign */

/* ==========================================================================
   Unlayered escape hatch
   --------------------------------------------------------------------------
   styles.css ships `html, body { height: 100% }` plus `body { overflow: hidden }`
   to lock the chat app inside its own scroll container. Both are unlayered,
   so they win the cascade against anything inside @layer redesign no matter
   the specificity. Marketing / download / status pages need a tall document
   that scrolls naturally — unlock both height and overflow here, outside the
   layer, where source order makes us win.
   ========================================================================== */
html:has(> body.dl-body) { height: auto; overflow: visible; }
body.dl-body {
  height: auto;
  min-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ============================================================
   Usage quota — topbar ring button + popover (2026-05-27)
   ============================================================ */
.quota-wrap { position: relative; display: inline-flex; }
.quota-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; cursor: pointer; border: none;
}
.quota-btn:hover { background: rgba(255,255,255,0.06); }
.quota-ring {
  --pct: 0; --quota-color: #b6bac6;
  position: relative;
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--quota-color) calc(var(--pct) * 1%), rgba(255,255,255,.14) 0);
}
.quota-ring::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--bg, #0d1014);
}
#quota-ring-label {
  position: relative; z-index: 1;
  font-size: 8.5px; font-weight: 700; color: var(--text);
  letter-spacing: -0.02em;
}
.quota-popover {
  position: absolute; top: 44px; right: 0; z-index: 700;
  width: 280px; padding: 12px;
  background: var(--bg, #14171c);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.quota-pop-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 10px;
}
.quota-pop-tier {
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(120,170,255,0.18); color: #cfd3db;
}
.quota-pop-owner { font-size: 13px; color: #cfd3db; padding: 8px 2px; }
.quota-row { display: flex; align-items: center; gap: 10px; padding: 7px 2px; }
.quota-row-ring {
  --pct: 0; --quota-color: #b6bac6;
  flex-shrink: 0; position: relative; width: 26px; height: 26px; border-radius: 50%;
  background: conic-gradient(var(--quota-color) calc(var(--pct) * 1%), rgba(255,255,255,.12) 0);
}
.quota-row-ring::after { content:""; position:absolute; inset:3px; border-radius:50%; background: var(--bg,#14171c); }
.quota-row-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.quota-row-label { font-size: 13px; color: var(--text); }
.quota-row-detail { font-size: 11px; color: var(--text-muted); }

/* ============================================================
   History type filters — sidebar chips
   ============================================================ */
.conv-filters {
  display: flex; gap: 6px; padding: 4px 12px 8px; flex-wrap: wrap;
}
.conv-filter {
  font-size: 11.5px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.05); color: var(--text-muted);
  border: 1px solid transparent; cursor: pointer; transition: all .12s ease;
}
.conv-filter:hover { background: rgba(255,255,255,0.09); color: var(--text); }
.conv-filter.is-active {
  background: rgba(120,170,255,0.16); color: #dadde3;
  border-color: rgba(120,170,255,0.30);
}

/* ============================================================
   Persona-modal memory queue
   ============================================================ */
.persona-memory { margin: 12px 0 4px; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 12px; }
.persona-memory-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px;
}
.persona-memory-toggle { display: inline-flex; align-items: center; gap: 6px; text-transform: none; font-weight: 500; cursor: pointer; }
.persona-memory-group { display: flex; flex-direction: column; gap: 6px; }
.pmem-group-title { font-size: 11px; color: var(--text-muted); margin: 8px 0 2px; }
.pmem-row {
  display: flex; gap: 6px; align-items: flex-start;
  padding: 6px; border-radius: 10px; background: rgba(255,255,255,0.04);
}
.pmem-pending { background: rgba(214, 218, 227,0.07); border: 1px solid rgba(214, 218, 227,0.20); }
.pmem-input {
  flex: 1; min-height: 32px; resize: vertical;
  background: transparent; border: none; color: var(--text);
  font: inherit; font-size: 13px; line-height: 1.4; padding: 4px 6px;
}
.pmem-input:focus { outline: 1px solid rgba(120,170,255,0.4); border-radius: 6px; }
.pmem-actions { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.pmem-btn {
  font-size: 11px; padding: 4px 8px; border-radius: 7px; cursor: pointer; border: none;
  background: rgba(255,255,255,0.08); color: var(--text);
}
.pmem-approve { background: rgba(90,200,120,0.20); color: #8ee6a8; }
.pmem-save    { background: rgba(120,170,255,0.18); color: #dadde3; }
.pmem-delete  { background: rgba(255,92,92,0.14); color: #ff9b9b; display:inline-flex; align-items:center; justify-content:center; }
.pmem-empty { font-size: 12px; color: var(--text-muted); padding: 8px 2px; }

/* ============================================================
   Admin platform source badges
   ============================================================ */
.badge-platform { font-weight: 700; letter-spacing: 0.04em; }
.badge-web { background: rgba(120,170,255,0.18); color: #cfd3db; }
.badge-ios { background: rgba(160,160,170,0.22); color: #d6d6df; }
.badge-mac { background: rgba(190,140,255,0.18); color: #d2b3ff; }

/* ============================================================
   Inline "Remember this?" memory prompt (in-chat banner)
   ============================================================ */
.memory-prompt {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 10px auto; max-width: 680px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(120, 170, 255, 0.08);
  border: 1px solid rgba(120, 170, 255, 0.22);
  transition: opacity .4s ease;
}
.memory-prompt-icon { color: #cfd3db; flex-shrink: 0; margin-top: 1px; }
.memory-prompt-body { flex: 1; min-width: 0; }
.memory-prompt-title { font-size: 12px; font-weight: 600; color: #dadde3; margin-bottom: 3px; }
.memory-prompt-text { font-size: 14px; color: var(--text); margin-bottom: 10px; }
.memory-prompt-actions { display: flex; gap: 8px; }
.memory-prompt-approve, .memory-prompt-decline {
  font-size: 12.5px; font-weight: 500; padding: 6px 14px; border-radius: 999px; cursor: pointer; border: none;
}
.memory-prompt-approve { background: rgba(90,200,120,0.22); color: #8ee6a8; }
.memory-prompt-approve:hover { background: rgba(90,200,120,0.32); }
.memory-prompt-decline { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.memory-prompt-decline:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.memory-prompt-done { font-size: 12.5px; color: var(--text-muted); }

/* Pending row in the Memories modal — Approve button + amber tint */
.memory-row-pending { background: rgba(214, 218, 227,0.07); border-radius: 8px; padding: 6px 8px; }
.memory-row-approve {
  font-size: 11.5px; padding: 4px 10px; border-radius: 7px; cursor: pointer; border: none;
  background: rgba(90,200,120,0.20); color: #8ee6a8; flex-shrink: 0; margin-right: 4px;
}
.memory-row-approve:hover { background: rgba(90,200,120,0.32); }

/* Scratch game (.sb3) result card — reuses .doc-card layout. */
.game-card .doc-card-icon{font-size:24px;line-height:1;display:flex;align-items:center;justify-content:center;background:rgba(255,159,67,.14);}
.game-dl-btn{display:inline-block;margin-top:10px;background:rgba(90,168,255,.22);border:1px solid rgba(90,168,255,.5);color:#fff;border-radius:10px;padding:8px 14px;font-size:13px;font-weight:600;cursor:pointer;text-decoration:none;}
.game-dl-btn:hover:not(:disabled){background:rgba(90,168,255,.34);}
.game-dl-btn:disabled{opacity:.6;cursor:default;}
