/* ==== Nebula — layered dark surfaces with aurora accents ====
   Design system notes (dark mode is the source of truth):
   - 8px spacing grid; radii: 10px controls, 16px cards, 20px panels, 999px pills
   - elevation ladder: page bg -> nav/footer -> card surface -> hover surface-2
   - borders are low-contrast whites; accent color marks interactive states only
   - mode blocks (.mode-light / .home-page) re-declare the token layer only;
     accent-tinted details use color-mix(var(--slp-accent) ...) so every mode
     (violet dark / violet light / blue homepage) re-tints them automatically.
   ============================================================ */
.theme-nebula {
  --slp-bg: #0a0e1f;
  --slp-bg-2: #0e1330;
  --slp-surface: #131934;
  --slp-surface-2: #1a2142;
  --slp-surface-solid: #131934;
  --slp-text: #e9edfb;
  --slp-muted: #99a2c6;
  --slp-accent: #7c6cff;
  --slp-accent-2: #3ad9c5;
  --slp-accent-deep: #4f43e3;
  --slp-danger: #ff6f9c;
  --slp-border: rgba(255, 255, 255, 0.08);
  --slp-border-strong: rgba(255, 255, 255, 0.15);
  --slp-card-shadow: 0 1px 2px rgba(4, 7, 18, 0.45), 0 18px 40px -18px rgba(4, 7, 18, 0.75);
  --slp-glow: rgba(124, 108, 255, 0.4);
  --slp-btn-text: #ffffff;
  --slp-code-bg: rgba(0, 0, 0, 0.3);
}

.theme-nebula {
  background:
    radial-gradient(1100px 640px at 82% -12%, rgba(124, 108, 255, 0.18), transparent 62%),
    radial-gradient(900px 520px at -12% 18%, rgba(58, 217, 197, 0.09), transparent 60%),
    radial-gradient(1000px 700px at 50% 115%, rgba(124, 108, 255, 0.1), transparent 65%),
    var(--slp-bg);
  color: var(--slp-text);
  min-height: 100vh;
}

.theme-nebula ::selection {
  background: color-mix(in srgb, var(--slp-accent) 38%, transparent);
  color: var(--slp-text);
}

.theme-nebula .slp-nav {
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  background: rgba(10, 14, 31, 0.78);
  border-bottom: 1px solid var(--slp-border);
}

.mode-light.theme-nebula .slp-nav { background: rgba(238, 241, 251, 0.7); }

.theme-nebula .slp-nav__brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--slp-text);
  text-decoration: none;
}

.theme-nebula .slp-nav__brand b {
  background: linear-gradient(120deg, var(--slp-accent), var(--slp-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.theme-nebula .nav-link {
  color: var(--slp-muted);
  font-weight: 500;
  position: relative;
  transition: color 0.18s ease;
}
.theme-nebula .nav-link:hover, .theme-nebula .nav-link.active { color: var(--slp-text); }
/* Top-nav active indicator — a short gradient rule under the current item. */
.theme-nebula .slp-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--slp-accent), var(--slp-accent-2));
}

.theme-nebula .btn {
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
}
.theme-nebula .btn:hover { transform: translateY(-1px); }
.theme-nebula .btn:active { transform: translateY(0); }
.theme-nebula .btn-accent {
  background: var(--slp-accent-deep);
  color: var(--slp-btn-text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--slp-accent-deep) 80%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.theme-nebula .btn-accent:hover {
  background: color-mix(in srgb, var(--slp-accent-deep) 88%, #ffffff);
  color: var(--slp-btn-text);
  box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--slp-accent-deep) 85%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.theme-nebula .btn-ghost {
  background: var(--slp-surface);
  color: var(--slp-text);
  border: 1px solid var(--slp-border-strong);
}
.theme-nebula .btn-ghost:hover {
  background: var(--slp-surface-2);
  border-color: color-mix(in srgb, var(--slp-accent) 60%, transparent);
  color: var(--slp-text);
}
/* Segmented pill for the light/dark mode toggle (matches app.css intent). */
.theme-nebula .btn-group [data-mode-btn] { border-radius: 999px; }
.theme-nebula .btn-group [data-mode-btn]:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.theme-nebula .btn-group [data-mode-btn]:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Keyboard focus for links; buttons/inputs keep their own rings. */
.theme-nebula a:focus-visible {
  outline: 2px solid var(--slp-accent);
  outline-offset: 2px;
}

/* Hero */
.theme-nebula .hero { position: relative; padding: 7rem 0 4rem; overflow: hidden; }
.theme-nebula .hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.42; pointer-events: none;
}
.theme-nebula .hero-orb.orb-1 { width: 420px; height: 420px; background: #7c6cff; top: -120px; right: -80px; }
.theme-nebula .hero-orb.orb-2 { width: 340px; height: 340px; background: #3ad9c5; bottom: -140px; left: -60px; opacity: 0.26; }

.theme-nebula .hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 1rem; border-radius: 999px;
  background: color-mix(in srgb, var(--slp-accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--slp-accent) 35%, transparent);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--slp-accent) 72%, var(--slp-text));
}
.theme-nebula .hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.035em;
  line-height: 1.08; text-wrap: balance;
}
.theme-nebula .hero-sub { color: var(--slp-muted); font-size: 1.15rem; line-height: 1.65; max-width: 640px; }

/* Shortener card */
.theme-nebula .shortener-card {
  background: var(--slp-surface);
  border: 1px solid var(--slp-border);
  border-radius: 20px;
  padding: 0.5rem;
  box-shadow: var(--slp-card-shadow);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.theme-nebula .shortener-input-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.theme-nebula .shortener-input {
  flex: 1 1 260px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--slp-border);
  color: var(--slp-text);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.theme-nebula .shortener-input::placeholder { color: var(--slp-muted); }
.theme-nebula .shortener-input:focus {
  outline: none;
  border-color: var(--slp-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--slp-accent) 28%, transparent);
}

/* Sections */
.theme-nebula .section { padding: 5rem 0; }
.theme-nebula .section-eyebrow {
  display: inline-block;
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.73rem; font-weight: 700;
  color: color-mix(in srgb, var(--slp-accent) 72%, var(--slp-text));
  background: color-mix(in srgb, var(--slp-accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--slp-accent) 32%, transparent);
  padding: 0.4rem 0.9rem; border-radius: 999px;
}
.theme-nebula .section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.18;
}
.theme-nebula .section-sub { color: var(--slp-muted); }

/* Feature cards */
.theme-nebula .feature-card {
  background: var(--slp-surface);
  border: 1px solid var(--slp-border);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}
.theme-nebula .feature-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--slp-accent) 55%, transparent);
  background: var(--slp-surface-2);
  box-shadow: var(--slp-card-shadow);
}
.theme-nebula .feature-icon {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--slp-accent) 30%, transparent),
    color-mix(in srgb, var(--slp-accent-2) 22%, transparent));
  color: color-mix(in srgb, var(--slp-accent) 65%, var(--slp-text));
  font-size: 1.3rem; margin-bottom: 1rem;
  transition: transform 0.2s ease;
}
.theme-nebula .feature-card:hover .feature-icon { transform: translateY(-2px); }
.theme-nebula .feature-card h5 { font-weight: 700; letter-spacing: -0.01em; }
.theme-nebula .feature-card p { color: var(--slp-muted); font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* Stats strip */
.theme-nebula .stat-strip {
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(120deg,
    color-mix(in srgb, var(--slp-accent) 16%, transparent),
    color-mix(in srgb, var(--slp-accent-2) 10%, transparent));
  border: 1px solid var(--slp-border);
}
.theme-nebula .stat-item { padding: 2rem; text-align: center; }
.theme-nebula .stat-item + .stat-item { border-left: 1px solid var(--slp-border); }
.theme-nebula .stat-num {
  font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.theme-nebula .stat-label {
  color: var(--slp-muted); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* Pricing */
.theme-nebula .plan-card {
  background: var(--slp-surface);
  border: 1px solid var(--slp-border);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}
.theme-nebula .plan-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--slp-accent) 55%, transparent);
  background: var(--slp-surface-2);
  box-shadow: var(--slp-card-shadow);
}
.theme-nebula .plan-card.plan-popular {
  border: 1px solid color-mix(in srgb, var(--slp-accent) 60%, transparent);
  background: linear-gradient(165deg,
    color-mix(in srgb, var(--slp-accent) 14%, transparent),
    var(--slp-surface) 60%);
  box-shadow: 0 24px 48px -24px color-mix(in srgb, var(--slp-accent) 55%, transparent);
}
.theme-nebula .popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--slp-accent-deep);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--slp-accent-deep) 90%, transparent);
  color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 0.35rem 0.9rem; border-radius: 999px; text-transform: uppercase;
}
.theme-nebula .plan-price {
  font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.theme-nebula .plan-feature { color: var(--slp-muted); font-size: 0.92rem; display: flex; gap: 0.5rem; align-items: center; }
.theme-nebula .plan-feature i { color: var(--slp-accent-2); }

/* Testimonials */
.theme-nebula .testi-card {
  background: var(--slp-surface);
  border: 1px solid var(--slp-border);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
}
.theme-nebula .quote { color: var(--slp-muted); font-size: 0.95rem; line-height: 1.65; }
.theme-nebula .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--slp-accent-deep) 85%, #ffffff), var(--slp-accent-deep));
  box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--slp-accent-deep) 80%, transparent);
  color: #fff; display: grid; place-items: center; font-weight: 700;
}

/* FAQ */
.theme-nebula .accordion-item {
  background: var(--slp-surface);
  border: 1px solid var(--slp-border);
  border-radius: 14px !important;
  overflow: hidden;
}
.theme-nebula .accordion-button {
  background: color-mix(in srgb, var(--slp-text) 3%, transparent);
  color: var(--slp-text); font-weight: 600;
  box-shadow: none !important;
}
.theme-nebula .accordion-button:not(.collapsed) {
  color: var(--slp-accent);
  background: color-mix(in srgb, var(--slp-accent) 7%, transparent);
}
.theme-nebula .accordion-body { color: var(--slp-muted); font-size: 0.95rem; line-height: 1.65; }

/* CTA band */
.theme-nebula .cta-band {
  border-radius: 20px; padding: 3rem;
  background: linear-gradient(120deg,
    color-mix(in srgb, var(--slp-accent) 24%, transparent),
    color-mix(in srgb, var(--slp-accent-2) 14%, transparent));
  border: 1px solid color-mix(in srgb, var(--slp-accent) 40%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative; overflow: hidden;
}

/* Result / interstitial */
.theme-nebula .result-box, .theme-nebula .interstitial-card {
  background: var(--slp-surface);
  border: 1px solid var(--slp-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--slp-card-shadow);
  backdrop-filter: blur(18px);
}
.theme-nebula .result-url {
  background: rgba(0, 0, 0, 0.3); border: 1px dashed var(--slp-border-strong);
  border-radius: 10px; padding: 0.875rem 1rem;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 1rem; line-height: 1.5; word-break: break-all;
}
.theme-nebula .ad-frame {
  border: 1px solid var(--slp-border); border-radius: 16px; overflow: hidden;
  min-height: 280px; display: grid; place-items: center;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--slp-accent) 13%, transparent),
    color-mix(in srgb, var(--slp-accent-2) 8%, transparent));
}
/* Pills painted with an inline accent color get the AA-safe deep accent
   (white on the bright accent is under 4.5:1; white on the deep accent
   clears it in every mode — dark violet, light violet, blue homepage). */
.theme-nebula .badge[style*="--slp-accent"] {
  background: var(--slp-accent-deep) !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff !important;
}

/* Footer */
.theme-nebula .site-footer { border-top: 1px solid var(--slp-border); background: rgba(10, 14, 31, 0.88); }
.theme-nebula .site-footer a { color: var(--slp-muted); text-decoration: none; transition: color 0.18s ease; }
.theme-nebula .site-footer a:hover { color: var(--slp-text); }
.theme-nebula .footer-brand { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.theme-nebula .site-footer .badge {
  background: color-mix(in srgb, var(--slp-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--slp-accent) 30%, transparent);
  color: color-mix(in srgb, var(--slp-accent) 70%, var(--slp-text));
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.4rem 0.75rem;
}

/* Page hero */
.theme-nebula .page-hero { padding: 6rem 0 2rem; }
.theme-nebula .page-content {
  background: var(--slp-surface); border: 1px solid var(--slp-border);
  border-radius: 20px; padding: 2.5rem;
}

/* Form controls */
.theme-nebula .form-control, .theme-nebula .form-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--slp-border);
  border-radius: 10px;
  color: var(--slp-text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.theme-nebula .form-control::placeholder { color: var(--slp-muted); }
.theme-nebula .form-control:focus, .theme-nebula .form-select:focus {
  border-color: var(--slp-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--slp-accent) 26%, transparent);
  color: var(--slp-text);
}
.theme-nebula .form-label { font-weight: 600; font-size: 0.9rem; }

/* Prose links stay on-palette */
.theme-nebula .result-box a:not(.btn),
.theme-nebula .page-content a:not(.btn),
.theme-nebula .accordion-body a:not(.btn) {
  color: color-mix(in srgb, var(--slp-accent) 78%, var(--slp-text));
  text-decoration-color: color-mix(in srgb, var(--slp-accent) 45%, transparent);
  text-underline-offset: 2px;
}
.theme-nebula .result-box a:not(.btn):hover,
.theme-nebula .page-content a:not(.btn):hover,
.theme-nebula .accordion-body a:not(.btn):hover {
  color: var(--slp-accent-2);
}

/* Light overrides */
.mode-light.theme-nebula {
  --slp-bg: #eef1fb;
  --slp-bg-2: #f5f7ff;
  --slp-surface: #ffffff;
  --slp-surface-2: #f5f7fd;
  --slp-surface-solid: #ffffff;
  --slp-text: #12163c;
  --slp-muted: #5a6287;
  --slp-accent: #5b4cff;
  --slp-accent-2: #0fa392;
  --slp-accent-deep: #4a3edd;
  --slp-danger: #e03e6a;
  --slp-border: rgba(18, 22, 60, 0.12);
  --slp-border-strong: rgba(18, 22, 60, 0.2);
  --slp-card-shadow: 0 20px 60px rgba(18, 22, 60, 0.12);
  --slp-glow: rgba(91, 76, 255, 0.35);
  --slp-btn-text: #ffffff;
  --slp-code-bg: #f0f2fa;
  /* Soft pastel washes replace the dark aurora glows of the base theme. */
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(91, 76, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(0, 184, 160, 0.07), transparent 60%),
    var(--slp-bg);
  color: var(--slp-text);
}
.mode-light.theme-nebula .slp-nav { background: rgba(255, 255, 255, 0.85); }
.mode-light.theme-nebula .shortener-input { background: #ffffff; color: #12163c; }
.mode-light.theme-nebula .result-url { background: rgba(0, 0, 0, 0.04); }
.mode-light.theme-nebula .feature-icon { color: var(--slp-accent); }
.mode-light.theme-nebula .form-control, .mode-light.theme-nebula .form-select {
  background: #ffffff; color: #12163c;
}
.mode-light.theme-nebula .form-control:focus, .mode-light.theme-nebula .form-select:focus {
  border-color: var(--slp-accent); box-shadow: 0 0 0 3px rgba(91, 76, 255, 0.18); color: #12163c;
}
.mode-light.theme-nebula .hero-orb.orb-1 { background: #5b4cff; opacity: 0.15; }
.mode-light.theme-nebula .hero-orb.orb-2 { background: #00b8a0; opacity: 0.1; }
.mode-light.theme-nebula .hero-badge { background: rgba(255, 255, 255, 0.9); border-color: var(--slp-border); color: var(--slp-muted); }
.mode-light.theme-nebula .shortener-card { box-shadow: var(--slp-card-shadow); }
.mode-light.theme-nebula .plan-card { box-shadow: var(--slp-card-shadow); }
.mode-light.theme-nebula .cta-band { box-shadow: var(--slp-card-shadow); }
.mode-light.theme-nebula .site-footer { background: rgba(255, 255, 255, 0.8); }
.mode-light.theme-nebula .accordion-button { background: #f8f9fc; color: var(--slp-text); }
.mode-light.theme-nebula .accordion-button:not(.collapsed) { color: var(--slp-accent); }
.mode-light.theme-nebula .stat-strip { background: linear-gradient(120deg, rgba(91, 76, 255, 0.12), rgba(0, 184, 160, 0.1)); }
.mode-light.theme-nebula .avatar { color: #fff; }
.mode-light.theme-nebula .btn-ghost { background: var(--slp-surface-solid); border-color: var(--slp-border); color: var(--slp-text); }
.mode-light.theme-nebula .btn-ghost:hover { border-color: var(--slp-accent); color: var(--slp-accent); }

@media (max-width: 768px) {
  .theme-nebula .stat-item + .stat-item { border-left: none; border-top: 1px solid var(--slp-border); }
  .theme-nebula .hero { padding: 5rem 0 3rem; }
  .theme-nebula .cta-band { padding: 2rem; }
  .theme-nebula .page-content { padding: 1.5rem; }
  .theme-nebula .result-box, .theme-nebula .interstitial-card { padding: 1.5rem; }
}

/* ==== Homepage — light blue + white gradient (LIGHT MODE ONLY) ====
   Scoped to .mode-light so the mode switcher works on the homepage:
   in dark mode this block is inactive and the base dark theme applies. */
.mode-light.theme-nebula.home-page {
  --slp-bg: #f3f8ff;
  --slp-bg-2: #e7f1ff;
  --slp-surface: rgba(255, 255, 255, 0.78);
  --slp-surface-2: #f3f8fe;
  --slp-surface-solid: #ffffff;
  --slp-text: #0e2a4d;
  --slp-muted: #4a6591;
  --slp-accent: #2f7df6;
  --slp-accent-2: #6ec1ff;
  --slp-accent-deep: #1a5cd4;
  --slp-danger: #e03e6a;
  --slp-border: rgba(80, 140, 220, 0.22);
  --slp-border-strong: rgba(80, 140, 220, 0.35);
  --slp-card-shadow: 0 18px 45px rgba(70, 130, 220, 0.15);
  --slp-glow: rgba(60, 130, 255, 0.4);
  --slp-btn-text: #ffffff;
  --slp-code-bg: #eef5ff;
  background:
    radial-gradient(1100px 550px at 80% -10%, rgba(130, 175, 255, 0.42), transparent 62%),
    radial-gradient(900px 520px at -10% 25%, rgba(140, 225, 215, 0.32), transparent 60%),
    linear-gradient(180deg, #ffffff 0, #f7faff 420px, #f1f6ff 900px, #eef4ff 1500px) !important;
  color: var(--slp-text);
}

.mode-light.theme-nebula.home-page .slp-nav {
  background: rgba(255, 255, 255, 0.75);
  border-bottom-color: rgba(90, 140, 220, 0.18);
}
.mode-light.theme-nebula.home-page .nav-link { color: #4a6591; }
.mode-light.theme-nebula.home-page .nav-link:hover, .mode-light.theme-nebula.home-page .nav-link.active { color: #0e2a4d; }

.mode-light.theme-nebula.home-page .hero-orb.orb-1 { background: #8ec8ff; opacity: 0.55; }
.mode-light.theme-nebula.home-page .hero-orb.orb-2 { background: #cfe8ff; opacity: 0.6; }

.mode-light.theme-nebula.home-page .hero-badge {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(90, 140, 220, 0.25);
  color: #33507e;
}
.mode-light.theme-nebula.home-page .hero-title { color: #0e2a4d; }
/* Deep blue→teal accent keeps AA on the light wash and echoes the logo. */
.mode-light.theme-nebula.home-page .hero-sub { color: #4a6591; }
.mode-light.theme-nebula.home-page .gradient-text {
  background: linear-gradient(120deg, #2f7df6, #0b7f8f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mode-light.theme-nebula.home-page .shortener-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(90, 140, 220, 0.22);
  box-shadow: 0 22px 55px rgba(80, 140, 220, 0.18);
}
.mode-light.theme-nebula.home-page .shortener-input {
  background: #ffffff;
  border-color: rgba(80, 140, 220, 0.28);
  color: #0e2a4d;
}
.mode-light.theme-nebula.home-page .shortener-input::placeholder { color: #7b93bb; }
.mode-light.theme-nebula.home-page .shortener-input:focus {
  border-color: #2f7df6;
  box-shadow: 0 0 0 3px rgba(47, 125, 246, 0.18);
}

.mode-light.theme-nebula.home-page .btn-accent { box-shadow: 0 14px 28px -14px rgba(26, 92, 212, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.mode-light.theme-nebula.home-page .btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(80, 140, 220, 0.28);
  color: #0e2a4d;
}
.mode-light.theme-nebula.home-page .btn-ghost:hover { border-color: #2f7df6; color: #2f7df6; }

.mode-light.theme-nebula.home-page .section-eyebrow { color: #2f7df6; }
.mode-light.theme-nebula.home-page .section-title { color: #0e2a4d; }
.mode-light.theme-nebula.home-page .section-sub { color: #4a6591; }

.mode-light.theme-nebula.home-page .feature-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(90, 140, 220, 0.2);
}
.mode-light.theme-nebula.home-page .feature-card:hover {
  border-color: rgba(47, 125, 246, 0.55);
  box-shadow: 0 20px 50px rgba(80, 140, 220, 0.22);
}
.mode-light.theme-nebula.home-page .feature-icon {
  background: linear-gradient(135deg, #2f7df6, #1f63dc);
  color: #fff;
}
.mode-light.theme-nebula.home-page .feature-card h5 { color: #0e2a4d; }
.mode-light.theme-nebula.home-page .feature-card p { color: #4a6591; }

.mode-light.theme-nebula.home-page .stat-strip {
  background: linear-gradient(120deg, rgba(47, 125, 246, 0.12), rgba(110, 193, 255, 0.16));
  border-color: rgba(90, 140, 220, 0.22);
}
.mode-light.theme-nebula.home-page .stat-num { color: #0e2a4d; }
.mode-light.theme-nebula.home-page .stat-label { color: #4a6591; }

.mode-light.theme-nebula.home-page .plan-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(90, 140, 220, 0.2);
}
.mode-light.theme-nebula.home-page .plan-card:hover { border-color: rgba(47, 125, 246, 0.55); }
.mode-light.theme-nebula.home-page .plan-card.plan-popular {
  border-color: #2f7df6;
  background: linear-gradient(160deg, rgba(47, 125, 246, 0.1), rgba(255, 255, 255, 0.95));
  box-shadow: 0 24px 60px rgba(47, 125, 246, 0.2);
}
.mode-light.theme-nebula.home-page .plan-price { color: #0e2a4d; }
.mode-light.theme-nebula.home-page .plan-feature { color: #4a6591; }
.mode-light.theme-nebula.home-page .plan-feature i { color: #2f7df6; }

.mode-light.theme-nebula.home-page .testi-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(90, 140, 220, 0.2);
}
.mode-light.theme-nebula.home-page .quote { color: #4a6591; }

.mode-light.theme-nebula.home-page .accordion-item {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(90, 140, 220, 0.2);
}
.mode-light.theme-nebula.home-page .accordion-button { background: #f2f8ff; color: #0e2a4d; }
.mode-light.theme-nebula.home-page .accordion-button:not(.collapsed) { color: #2f7df6; }
.mode-light.theme-nebula.home-page .accordion-body { color: #4a6591; }

.mode-light.theme-nebula.home-page .cta-band {
  background: linear-gradient(120deg, rgba(47, 125, 246, 0.14), rgba(110, 193, 255, 0.2));
  border-color: rgba(90, 140, 220, 0.25);
  box-shadow: 0 22px 55px rgba(80, 140, 220, 0.18);
}

.mode-light.theme-nebula.home-page .site-footer {
  background: rgba(255, 255, 255, 0.82);
  border-top-color: rgba(90, 140, 220, 0.18);
}
.mode-light.theme-nebula.home-page .site-footer a { color: #4a6591; }
.mode-light.theme-nebula.home-page .site-footer a:hover { color: #2f7df6; }
.mode-light.theme-nebula.home-page .footer-brand { color: #0e2a4d; }

.mode-light.theme-nebula.home-page .avatar {
  background: linear-gradient(135deg, #2774ec, var(--slp-accent-deep));
  color: #fff;
}

.mode-light.theme-nebula.home-page .form-control, .mode-light.theme-nebula.home-page .form-select {
  background: #ffffff;
  border-color: rgba(80, 140, 220, 0.28);
  color: #0e2a4d;
}
.mode-light.theme-nebula.home-page .form-control:focus, .mode-light.theme-nebula.home-page .form-select:focus {
  border-color: #2f7df6;
  box-shadow: 0 0 0 3px rgba(47, 125, 246, 0.18);
  color: #0e2a4d;
}

/* ==== Homepage — aurora wash (DARK MODE ONLY) ====
   Restrained violet/teal glow over the top, settling into the base nebula.
   Scoped .theme-nebula.home-page: inactive in light mode (that block wins). */
.theme-nebula.home-page {
  background:
    radial-gradient(1000px 560px at 82% -12%, rgba(124, 108, 255, 0.2), transparent 62%),
    radial-gradient(900px 500px at -8% 18%, rgba(58, 217, 197, 0.12), transparent 58%),
    linear-gradient(180deg, #0d1130 0, #0c1029 500px, #0b0f28 1300px) !important;
}

/* Respect the user's motion preference — no lift/hover travel. */
@media (prefers-reduced-motion: reduce) {
  .theme-nebula .btn,
  .theme-nebula .feature-card,
  .theme-nebula .plan-card,
  .theme-nebula .feature-icon,
  .theme-nebula .nav-link {
    transition: none;
  }
  .theme-nebula .btn:hover,
  .theme-nebula .feature-card:hover,
  .theme-nebula .plan-card:hover,
  .theme-nebula .feature-card:hover .feature-icon {
    transform: none;
  }
}

/* ============================================================================
   MONOCHROME (trimfo style) — appended LAST in this file so it wins every tie
   against the blocks above. One solid page background, a grey header bar where
   Sign In / Start appear, and a single black (light) / white (dark) accent.
   Declarations are !important so they also beat the .home-page and .mode-*
   layers, which otherwise out-specify the base rules.
   ============================================================================ */

/* ---- token layer ------------------------------------------------------- */
.mode-light.theme-nebula {
  --slp-bg: #f8fafc !important;
  --slp-bg-2: #ffffff !important;
  --slp-surface: #ffffff !important;
  --slp-surface-2: #f8fafc !important;
  --slp-surface-solid: #ffffff !important;
  --slp-text: #0f172a !important;
  --slp-muted: #64748b !important;
  --slp-accent: #6d45f5 !important;
  --slp-accent-2: #5935db !important;
  --slp-accent-deep: #5935db !important;
  --slp-danger: #dc2626 !important;
  --slp-border: #e2e8f0 !important;
  --slp-border-strong: #cbd5e1 !important;
  --slp-card-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 32px -22px rgba(15, 23, 42, 0.35) !important;
  --slp-glow: rgba(109, 69, 245, 0.18) !important;
  --slp-btn-text: #ffffff !important;
  --slp-code-bg: #f1f5f9 !important;
  --slp-chrome: #ffffff !important;
}
.mode-dark.theme-nebula {
  --slp-bg: #0b0d13 !important;
  --slp-bg-2: #0f1219 !important;
  --slp-surface: #131620 !important;
  --slp-surface-2: #0f1219 !important;
  --slp-surface-solid: #131620 !important;
  --slp-text: #f1f5f9 !important;
  --slp-muted: #94a3b8 !important;
  --slp-accent: #8b7cff !important;
  --slp-accent-2: #6d45f5 !important;
  --slp-accent-deep: #6d45f5 !important;
  --slp-danger: #f87171 !important;
  --slp-border: rgba(255, 255, 255, 0.10) !important;
  --slp-border-strong: rgba(255, 255, 255, 0.18) !important;
  --slp-card-shadow: none !important;
  --slp-glow: rgba(109, 69, 245, 0.28) !important;
  --slp-btn-text: #ffffff !important;
  --slp-code-bg: #0f1219 !important;
  --slp-chrome: #0f131d !important;
}

/* ---- one solid page background (kills every aurora wash) --------------- */
.mode-light.theme-nebula { background: #f8fafc !important; color: #0f172a !important; }
.mode-dark.theme-nebula { background: #0b0d13 !important; color: #f1f5f9 !important; }
.mode-light.theme-nebula.home-page { background: #f8fafc !important; }
.mode-dark.theme-nebula.home-page { background: #0b0d13 !important; }

/* ---- translucent header bar (trimfo floating-bar feel) ------------------ */
.theme-nebula .slp-nav {
  background: rgba(255, 255, 255, .80) !important;
  border-bottom: 1px solid rgba(226, 232, 240, .80) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}
.mode-dark.theme-nebula .slp-nav {
  background: rgba(15, 19, 29, .85) !important;
  border-bottom-color: rgba(255, 255, 255, .10) !important;
}
.theme-nebula .slp-nav__brand b {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: inherit !important;
}
.theme-nebula .slp-nav .nav-link.active::after { background: currentColor !important; }
.theme-nebula .nav-link { color: var(--slp-muted) !important; }
.theme-nebula .nav-link:hover,
.theme-nebula .nav-link.active { color: var(--slp-text) !important; }

/* ---- buttons ---------------------------------------------------------- */
.theme-nebula .btn-accent {
  background: linear-gradient(to right, #6d45f5 0%, #5935db 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(109, 69, 245, .25) !important;
}
.theme-nebula .btn-accent:hover {
  background: linear-gradient(to right, #5935db 0%, #4c28c7 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(109, 69, 245, .32) !important;
}
.theme-nebula .btn-ghost {
  background: var(--slp-surface) !important;
  color: var(--slp-text) !important;
  border-color: var(--slp-border-strong) !important;
}
.theme-nebula .btn-ghost:hover {
  background: var(--slp-surface-2) !important;
  color: var(--slp-text) !important;
  border-color: var(--slp-accent) !important;
}

/* ---- decorative colour blobs gone ------------------------------------- */
.theme-nebula .hero-orb { display: none !important; }

/* ---- surfaces / forms ------------------------------------------------- */
.theme-nebula .shortener-input,
.theme-nebula .form-control,
.theme-nebula .form-select {
  background: var(--slp-surface) !important;
  color: var(--slp-text) !important;
  border-color: var(--slp-border-strong) !important;
}
.theme-nebula .shortener-input:focus,
.theme-nebula .form-control:focus,
.theme-nebula .form-select:focus {
  background: var(--slp-surface) !important;
  color: var(--slp-text) !important;
  border-color: var(--slp-accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--slp-accent) 16%, transparent) !important;
}
.theme-nebula .shortener-input::placeholder,
.theme-nebula .form-control::placeholder { color: var(--slp-muted) !important; }
.theme-nebula .result-url { background: var(--slp-code-bg) !important; }
.theme-nebula .result-box,
.theme-nebula .interstitial-card { backdrop-filter: none !important; }
.theme-nebula .ad-frame {
  background: var(--slp-surface-2) !important;
  border-color: var(--slp-border) !important;
}
.theme-nebula .stat-strip {
  background: var(--slp-chrome) !important;
  border-color: var(--slp-border) !important;
}
.theme-nebula .cta-band {
  background: var(--slp-chrome) !important;
  border-color: var(--slp-border) !important;
  box-shadow: none !important;
}
.theme-nebula .site-footer {
  background: var(--slp-chrome) !important;
  border-top: 1px solid var(--slp-border) !important;
}
.theme-nebula .site-footer a { color: var(--slp-muted) !important; }
.theme-nebula .site-footer a:hover { color: var(--slp-accent) !important; }
.theme-nebula .footer-brand { color: var(--slp-text) !important; }
.theme-nebula .accordion-button {
  background: var(--slp-surface) !important;
  color: var(--slp-text) !important;
}
.theme-nebula .accordion-button:not(.collapsed) {
  background: var(--slp-surface-2) !important;
  color: var(--slp-accent) !important;
}
.theme-nebula .avatar,
.theme-nebula .feature-icon {
  background: var(--slp-accent-deep) !important;
  color: var(--slp-btn-text) !important;
  box-shadow: none !important;
}
.theme-nebula .popular-badge {
  background: var(--slp-accent-deep) !important;
  border-color: transparent !important;
  color: var(--slp-btn-text) !important;
}
.theme-nebula .badge[style*="--slp-accent"] {
  background: var(--slp-accent-deep) !important;
  border-color: transparent !important;
  color: var(--slp-btn-text) !important;
}

/* ---- homepage: strip the blue wash ------------------------------------ */
.theme-nebula .hero-title { color: var(--slp-text) !important; }
.theme-nebula .hero-sub { color: var(--slp-muted) !important; }
.theme-nebula .hero-badge {
  background: var(--slp-surface) !important;
  border-color: var(--slp-border) !important;
  color: var(--slp-muted) !important;
}
.theme-nebula .gradient-text {
  background: linear-gradient(to right, #6d45f5 0%, #3b82f6 50%, #06b6d4 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}
.theme-nebula .shortener-card {
  background: var(--slp-surface) !important;
  border-color: var(--slp-border) !important;
  box-shadow: var(--slp-card-shadow) !important;
}
.theme-nebula .section-eyebrow { color: var(--slp-accent) !important; }
.theme-nebula .section-title { color: var(--slp-text) !important; }
.theme-nebula .section-sub { color: var(--slp-muted) !important; }
.theme-nebula .feature-card {
  background: var(--slp-surface) !important;
  border-color: var(--slp-border) !important;
}
.theme-nebula .feature-card:hover {
  border-color: var(--slp-border-strong) !important;
  box-shadow: var(--slp-card-shadow) !important;
}
.theme-nebula .feature-card h5 { color: var(--slp-text) !important; }
.theme-nebula .feature-card p { color: var(--slp-muted) !important; }
.theme-nebula .stat-item { color: var(--slp-text) !important; }
.theme-nebula .stat-item + .stat-item { border-color: var(--slp-border-strong) !important; }
.theme-nebula .stat-num { color: var(--slp-text) !important; }
.theme-nebula .stat-label { color: var(--slp-muted) !important; }
.theme-nebula .plan-card {
  background: var(--slp-surface) !important;
  border-color: var(--slp-border) !important;
}
.theme-nebula .plan-card:hover { border-color: var(--slp-border-strong) !important; }
.theme-nebula .plan-card.plan-popular {
  background: var(--slp-surface) !important;
  border-color: var(--slp-accent) !important;
  box-shadow: var(--slp-card-shadow) !important;
}
.theme-nebula .plan-price { color: var(--slp-text) !important; }
.theme-nebula .plan-feature { color: var(--slp-muted) !important; }
.theme-nebula .plan-feature i { color: var(--slp-accent) !important; }
.theme-nebula .testi-card {
  background: var(--slp-surface) !important;
  border-color: var(--slp-border) !important;
}
.theme-nebula .quote { color: var(--slp-muted) !important; }
.theme-nebula .accordion-item {
  background: var(--slp-surface) !important;
  border-color: var(--slp-border) !important;
}
.theme-nebula .accordion-body { color: var(--slp-muted) !important; }
