:root {
  --panel: rgba(19, 22, 29, 0.88);
  --card: rgba(17, 20, 26, 0.92);
  --card-hover: rgba(25, 29, 37, 0.98);
  --line: rgba(112, 124, 151, 0.2);
  --text: #f4f4ed;
  --muted: #a5acb8;
  --muted-strong: #d5dae1;
  --accent: #b8ff1f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --font-display: "Trebuchet MS", "Aptos Display", "Segoe UI Variable", "Segoe UI", sans-serif;
  --font-ui: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
  --font-mono: Consolas, "Lucida Console", "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-mono);
  color: var(--text);
  background:
    radial-gradient(circle at 50% 12%, rgba(169, 255, 49, 0.19), transparent 28%),
    radial-gradient(circle at 82% 88%, rgba(218, 88, 168, 0.18), transparent 24%),
    radial-gradient(circle at 12% 18%, rgba(55, 89, 53, 0.18), transparent 26%),
    linear-gradient(180deg, #0a0c10 0%, #0d1015 42%, #0f0b14 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.8;
}

body::before {
  top: -90px;
  left: 50%;
  width: 420px;
  height: 420px;
  transform: translateX(-50%);
  background: rgba(164, 255, 42, 0.11);
}

body::after {
  right: -120px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  background: rgba(205, 79, 154, 0.1);
}

button,
input {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.page {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 36px), 1180px);
  margin: 0 auto;
  padding: 34px 0 64px;
}

.hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
  margin-bottom: 34px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(184, 255, 31, 0.14);
  border-radius: 999px;
  background: rgba(26, 31, 35, 0.8);
  color: #dae2d3;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(184, 255, 31, 0.75);
}

.hero-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.hero-title-main,
.hero-title-accent {
  font-family: var(--font-mono);
  font-size: clamp(48px, 8vw, 90px);
  font-weight: 700;
}

.hero-title-main {
  color: #f4f3ea;
  text-shadow: 0 12px 38px rgba(0, 0, 0, 0.24);
}

.hero-title-accent {
  background: linear-gradient(135deg, #c3ff20 0%, #a4ff49 28%, #edce70 56%, #f06aa7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead,
.copy-msg,
.results-note,
.ad-caption,
.control-label,
.insight-head p,
.empty-state,
.toggle-hint {
  color: var(--muted);
}

.lead {
  max-width: 650px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

.lead-mobile {
  display: none;
}

#heroAdMount,
#inlineAdMount,
#bottomAdMount {
  width: 100%;
}

.studio,
.mobile-inline-row {
  display: grid;
  grid-template-columns: minmax(290px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.mobile-inline-row {
  margin-top: 18px;
}

.mobile-inline-row:has(#inlineAdMount:empty) {
  display: none;
}

.mobile-inline-spacer {
  min-height: 1px;
}

.control-panel,
.results-panel,
.insight-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.control-panel {
  padding: 20px;
  font-family: var(--font-mono);
  font-weight: 500;
}

.results-panel {
  padding: 18px;
}

.results-column {
  display: grid;
  gap: 20px;
  align-content: stretch;
  align-self: stretch;
  grid-template-rows: auto minmax(96px, 1fr);
}

.control-stack {
  display: grid;
  gap: 11px;
  margin-top: 0;
}

.control-group {
  display: grid;
  gap: 10px;
}

.control-group-primary,
.control-group-secondary {
  border-radius: 18px;
}

.control-group-primary {
  padding: 16px;
  border: 1px solid rgba(184, 255, 31, 0.18);
  background:
    linear-gradient(180deg, rgba(184, 255, 31, 0.08), rgba(184, 255, 31, 0.03)),
    rgba(255, 255, 255, 0.02);
}

.control-group-secondary {
  padding: 14px;
  border: 1px solid rgba(115, 126, 149, 0.16);
  background: rgba(255, 255, 255, 0.015);
}

.control-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.control-group-primary .control-label {
  color: #ebffd0;
}

.control-label-length {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.mode-row,
.tab-row,
.toggle-stack {
  display: grid;
  gap: 10px;
}

.mode-row {
  grid-template-columns: repeat(3, max-content);
  justify-content: space-between;
  align-items: stretch;
}

.tab-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-shell {
  display: block;
}

.field-input {
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(120, 132, 157, 0.18);
  border-radius: 14px;
  background: rgba(11, 13, 18, 0.96);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input::placeholder {
  color: rgba(165, 172, 184, 0.7);
}

.field-input:focus {
  border-color: rgba(184, 255, 31, 0.3);
  box-shadow: 0 0 0 3px rgba(184, 255, 31, 0.08);
}

.range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.range-value {
  color: #b9ff55;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
}

.length-range {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  appearance: none;
  background: rgba(58, 63, 75, 0.9);
  outline: none;
}

.length-range::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  border: 2px solid #b8ff1f;
  border-radius: 50%;
  appearance: none;
  background: #11151a;
  box-shadow: 0 0 0 4px rgba(184, 255, 31, 0.1);
  cursor: pointer;
}

.length-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 2px solid #b8ff1f;
  border-radius: 50%;
  background: #11151a;
  box-shadow: 0 0 0 4px rgba(184, 255, 31, 0.1);
  cursor: pointer;
}

.mode-btn,
.category-tab,
.secondary-btn,
.generate,
.username,
.insight-chip,
.leaderboard-row {
  border: 1px solid rgba(120, 132, 157, 0.18);
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.mode-btn,
.category-tab,
.secondary-btn {
  min-height: 44px;
  min-width: 0;
  padding: 0 8px;
}

.mode-btn {
  border-color: rgba(183, 255, 31, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    rgba(40, 45, 56, 0.62);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding-inline: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mode-btn.active {
  border-color: rgba(210, 255, 96, 0.42);
  background: linear-gradient(180deg, #c6ff2f 0%, #b4fb25 100%);
  color: #0d1115;
  box-shadow: 0 14px 30px rgba(184, 255, 31, 0.2), 0 0 0 1px rgba(210, 255, 96, 0.08);
}

.category-tab {
  min-height: 44px;
  background: rgba(39, 43, 53, 0.62);
  color: #d7dce3;
  font-family: var(--font-mono);
  font-size: 14px;
}

.category-tab.active {
  border-color: rgba(184, 255, 31, 0.25);
  background: rgba(184, 255, 31, 0.12);
  color: #efffd2;
}

.mode-btn:hover,
.category-tab:hover,
.secondary-btn:hover,
.insight-chip:hover,
.leaderboard-row:hover,
.toggle-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 255, 31, 0.26);
}

.toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid rgba(120, 132, 157, 0.18);
  border-radius: 16px;
  background: rgba(28, 32, 40, 0.72);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.toggle-btn.active {
  border-color: rgba(184, 255, 31, 0.24);
  background: rgba(35, 42, 28, 0.72);
}

.toggle-btn:focus-visible,
.field-input:focus-visible,
.length-range:focus-visible,
.username:focus-visible,
.generate:focus-visible,
.mode-btn:focus-visible,
.category-tab:focus-visible,
.secondary-btn:focus-visible,
.insight-chip:focus-visible,
.leaderboard-row:focus-visible {
  outline: 2px solid rgba(184, 255, 31, 0.55);
  outline-offset: 2px;
}

.toggle-text-wrap {
  display: flex;
  align-items: center;
  text-align: left;
}

.toggle-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
}

.toggle-track {
  position: relative;
  flex-shrink: 0;
  width: 50px;
  height: 28px;
  border-radius: 999px;
  background: rgba(76, 83, 98, 0.9);
  transition: background 0.2s ease;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f0f4e8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}

.toggle-btn.active .toggle-track {
  background: linear-gradient(135deg, #9be95b, #4fd769);
}

.toggle-btn.active .toggle-thumb {
  transform: translateX(22px);
  background: #101510;
}

.action-row {
  margin-top: 10px;
}

.advanced-options {
  overflow: hidden;
}

.advanced-summary {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.advanced-summary::-webkit-details-marker {
  display: none;
}

.advanced-summary-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(184, 255, 31, 0.74);
  border-bottom: 2px solid rgba(184, 255, 31, 0.74);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.advanced-options[open] .advanced-summary-icon {
  transform: rotate(225deg);
}

.advanced-desktop-label {
  display: block;
}

.advanced-body {
  display: block;
}

.trust-note {
  margin-top: 10px;
  text-align: center;
  color: #d9e8c8;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.03em;
  opacity: 0.92;
}

.generate {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 56px;
  padding: 18px 32px;
  border-color: rgba(205, 255, 77, 0.42);
  border-radius: 16px;
  background: linear-gradient(135deg, #ccff31 0%, #a9f52b 38%, #6ee46b 100%);
  color: #0d180d;
  font-size: 19px;
  font-weight: 760;
  letter-spacing: 0.02em;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  box-shadow:
    0 14px 34px rgba(170, 245, 43, 0.26),
    0 0 0 1px rgba(214, 255, 120, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: scale(1);
  transition: all 0.2s ease;
}

.generate::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.14) 40%, rgba(255, 255, 255, 0.42) 52%, rgba(255, 255, 255, 0.12) 64%, transparent 82%);
  transform: translateX(-140%);
  animation: generateShine 3s ease-in-out infinite;
  pointer-events: none;
}

.generate:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 36px rgba(170, 245, 43, 0.3),
    0 0 0 1px rgba(214, 255, 120, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.generate:active {
  transform: translateY(0);
}

.generate-text {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.generate.pulse {
  animation: pulse 3s ease-out infinite;
}

.output {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.username {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 18px 18px 18px 20px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    var(--card);
  color: #f6f7f0;
  font-family: var(--font-mono);
  font-size: clamp(18px, 2vw, 20px);
  text-align: left;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.username-label {
  flex: 1 1 auto;
  min-width: 0;
}

.copy-icon {
  flex: 0 0 auto;
  color: #b8bfcb;
  font-size: 18px;
  line-height: 1;
  opacity: 0.78;
}

.username:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 255, 31, 0.24);
  background:
    linear-gradient(180deg, rgba(184, 255, 31, 0.08), rgba(255, 255, 255, 0)),
    var(--card-hover);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.username:hover .copy-icon {
  color: #e8ffd1;
  opacity: 1;
}

.username:active {
  transform: scale(0.985);
}

.username.copied,
.insight-chip.copied,
.leaderboard-row.copied {
  border-color: rgba(184, 255, 31, 0.45);
  background:
    linear-gradient(180deg, rgba(184, 255, 31, 0.12), rgba(255, 255, 255, 0)),
    rgba(28, 34, 24, 0.96);
  color: #f3ffd8;
  box-shadow: 0 0 0 1px rgba(184, 255, 31, 0.1), 0 16px 38px rgba(109, 191, 18, 0.14);
}

.results-note,
.copy-msg {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.results-note {
  margin-top: 18px;
  text-transform: lowercase;
}

.copy-msg {
  min-height: 18px;
  margin-top: 8px;
}

.copy-msg.is-active {
  animation: copyFlash 0.45s ease;
}

.smartlink-box,
.smartlink-inline,
.smartlink-banner {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.smartlink-box.is-visible,
.smartlink-inline.is-visible,
.smartlink-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.smartlink-box {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  opacity: 0.85;
}

.smartlink-inline {
  display: none;
  justify-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
  text-align: center;
  color: #dce7d0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.45;
}

.smartlink-inline-copy,
.smartlink-banner-copy {
  color: #f3f7eb;
  font-family: var(--font-mono);
}

.smartlink-inline a,
.smartlink-banner a {
  color: #a3ff12;
  font-family: var(--font-mono);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px dashed rgba(163, 255, 18, 0.55);
  font-weight: 600;
}

.smartlink-inline a:hover,
.smartlink-banner a:hover,
.smartlink-box a:hover {
  opacity: 1;
}

.smartlink-banner {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  width: 100%;
  min-height: 0;
  height: 100%;
  padding: 16px 22px;
  margin: 0;
  border: 1px solid rgba(184, 255, 31, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(184, 255, 31, 0.08), rgba(184, 255, 31, 0.02)),
    rgba(18, 22, 28, 0.84);
  text-align: center;
  box-shadow: var(--shadow);
}

.smartlink-banner-copy {
  font-size: 19px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.insight-card {
  padding: 18px;
  transition: all 0.2s ease;
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.insight-head {
  display: grid;
  gap: 7px;
}

.insight-head h3 {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
}

.insight-head p {
  font-size: 14px;
  line-height: 1.55;
}

.chip-list,
.leaderboard-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.insight-chip,
.leaderboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  background: rgba(28, 32, 40, 0.72);
  color: #edf0f4;
  text-align: left;
}

.chip-text,
.leaderboard-name {
  overflow-wrap: anywhere;
}

.chip-score,
.count-pill,
.rank-badge {
  flex-shrink: 0;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.chip-score,
.count-pill {
  padding: 5px 9px;
  background: rgba(184, 255, 31, 0.1);
  color: #ebffd0;
}

.leaderboard-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rank-badge {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: rgba(184, 255, 31, 0.08);
  color: #efffd5;
}

.empty-state {
  font-size: 14px;
}

.ad-shell {
  display: grid;
  justify-items: center;
  width: 100%;
}

.ad-caption {
  margin: 14px 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ad {
  display: grid;
  place-items: center;
  max-width: 100%;
  padding: 16px;
  border: 1px dashed rgba(184, 255, 31, 0.22);
  border-radius: 18px;
  background: rgba(18, 22, 28, 0.84);
  color: var(--muted);
  font-family: var(--font-mono);
  text-align: center;
}

.desktop-ad {
  width: min(728px, 100%);
  height: 90px;
  min-height: 90px;
  margin-inline: auto;
}

.mobile-ad {
  width: min(300px, 100%);
  height: 250px;
  min-height: 250px;
  margin-inline: auto;
}

.ad-shell-bottom,
.ad-shell-inline {
  margin-top: 18px;
}

@keyframes generateShine {
  0%,
  68% {
    transform: translateX(-140%);
  }

  84%,
  100% {
    transform: translateX(140%);
  }
}

@keyframes pulse {
  0%,
  64%,
  100% {
    box-shadow: 0 14px 34px rgba(170, 245, 43, 0.26), 0 0 0 0 rgba(34, 197, 94, 0);
  }

  76% {
    box-shadow: 0 16px 38px rgba(170, 245, 43, 0.3), 0 0 0 10px rgba(34, 197, 94, 0.14);
  }
}

@keyframes copyFlash {
  0% {
    transform: translateY(0);
    opacity: 0.65;
  }

  50% {
    transform: translateY(-1px);
    opacity: 1;
  }

  100% {
    transform: translateY(0);
    opacity: 0.85;
  }
}

@media (max-width: 980px) {
  .studio,
  .mobile-inline-row,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .mobile-inline-spacer {
    display: none;
  }
}

@media (max-width: 760px) {
  .page {
    width: min(calc(100% - 16px), 1180px);
    padding: 10px 0 24px;
  }

  .hero {
    gap: 8px;
    margin-bottom: 10px;
  }

  .hero-badge {
    min-height: 24px;
    padding: 0 8px;
    font-size: 10px;
    letter-spacing: 0.03em;
  }

  .hero-badge-dot {
    width: 6px;
    height: 6px;
  }

  .hero-title {
    gap: 10px;
    letter-spacing: -0.05em;
  }

  .hero-title-main,
  .hero-title-accent {
    font-size: clamp(30px, 9.5vw, 44px);
  }

  .lead {
    max-width: 28ch;
    font-size: 13px;
    line-height: 1.22;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .lead-desktop {
    display: none;
  }

  .lead-mobile {
    display: inline;
  }

  .control-panel,
  .results-panel,
  .insight-card {
    border-radius: 18px;
  }

  .control-panel {
    padding: 11px;
  }

  .results-panel {
    padding: 12px;
  }

  .control-stack {
    gap: 7px;
    margin-top: 0;
  }

  .control-group {
    gap: 6px;
  }

  .control-group-primary {
    padding: 9px;
  }

  .control-group-secondary {
    padding: 9px 10px;
  }

  .control-label {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .control-group-primary > .control-label {
    display: none;
  }

  .mode-row,
  .toggle-stack {
    gap: 6px;
  }

  .mode-btn {
    min-height: 36px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .field-input {
    min-height: 36px;
    padding-inline: 11px;
    font-size: 14px;
  }

  .range-value {
    font-size: 14px;
  }

  .toggle-btn {
    min-height: 42px;
    padding: 6px 10px;
    border-radius: 14px;
  }

  .toggle-title {
    font-size: 12px;
  }

  .toggle-track {
    width: 44px;
    height: 24px;
  }

  .toggle-thumb {
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
  }

  .toggle-btn.active .toggle-thumb {
    transform: translateX(20px);
  }

  .length-range {
    height: 4px;
  }

  .length-range::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    box-shadow: 0 0 0 3px rgba(184, 255, 31, 0.08);
  }

  .length-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    box-shadow: 0 0 0 3px rgba(184, 255, 31, 0.08);
  }

  .action-row {
    margin-top: 4px;
  }

  .generate {
    min-height: 46px;
    padding: 12px 20px;
    font-size: 16px;
  }

  .trust-note {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.2;
  }

  .results-column {
    gap: 6px;
    align-self: auto;
    grid-template-rows: none;
  }

  .output {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .username {
    min-height: 56px;
    padding: 13px 14px 13px 16px;
    border-radius: 16px;
    font-size: 16px;
    gap: 10px;
  }

  .copy-icon {
    font-size: 16px;
  }

  .results-note,
  .copy-msg {
    font-size: 11px;
    line-height: 1.35;
  }

  .results-note {
    margin-top: 12px;
  }

  .copy-msg {
    min-height: 16px;
    margin-top: 6px;
  }

  .insight-grid {
    gap: 10px;
    margin-top: 14px;
  }

  .insight-card {
    padding: 13px;
    border-radius: 16px;
  }

  .insight-head {
    gap: 5px;
  }

  .insight-head h3 {
    font-size: 16px;
  }

  .insight-head p,
  .empty-state {
    font-size: 12px;
    line-height: 1.4;
  }

  .chip-list,
  .leaderboard-list {
    gap: 8px;
    margin-top: 10px;
  }

  .insight-chip,
  .leaderboard-row {
    min-height: 42px;
    padding: 10px 11px;
    gap: 8px;
    border-radius: 14px;
  }

  .chip-text,
  .leaderboard-name {
    font-size: 13px;
  }

  .chip-score,
  .count-pill,
  .rank-badge {
    font-size: 11px;
  }

  .chip-score,
  .count-pill {
    padding: 4px 8px;
  }

  .leaderboard-left {
    gap: 8px;
  }

  .rank-badge {
    width: 24px;
    height: 24px;
  }

  .advanced-options {
    padding: 0;
  }

  .advanced-summary {
    display: flex;
    padding: 9px 11px;
  }

  .advanced-desktop-label {
    display: none;
  }

  .advanced-body {
    padding: 0 11px 11px;
  }
}

@media (max-width: 640px) {
  .mode-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .tab-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-btn {
    width: 100%;
  }

  .generate {
    width: 100%;
  }

  .username {
    min-height: 54px;
    padding: 12px 13px 12px 15px;
    font-size: 15px;
  }

  .mobile-inline-row {
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .smartlink-banner {
    display: none !important;
  }

  .smartlink-inline:not([hidden]) {
    display: grid;
    justify-items: center;
    gap: 3px;
    width: 100%;
  }

  .smartlink-box {
    margin-top: 12px;
    padding: 11px 12px;
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(163, 255, 18, 0.12), rgba(163, 255, 18, 0.04)),
      rgba(15, 18, 22, 0.94);
    border: 1px solid rgba(163, 255, 18, 0.22);
    box-shadow:
      0 12px 28px rgba(0, 0, 0, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
    font-size: 15px;
    opacity: 1;
  }

  .smartlink-inline {
    gap: 3px;
    line-height: 1.28;
  }

  .smartlink-inline-copy {
    display: block;
    color: #edf8d7;
    font-size: 12px;
    letter-spacing: 0.03em;
    opacity: 0.92;
  }

  .smartlink-box a,
  .smartlink-inline a,
  .smartlink-banner a {
    display: inline-block;
    margin-top: 0;
    color: #b6ff2e;
    font-size: 16px;
    line-height: 1.2;
    text-shadow: 0 0 14px rgba(163, 255, 18, 0.16);
  }
}

@media (max-width: 420px) {
  .hero-badge {
    font-size: 11px;
  }

  .lead {
    font-size: 16px;
  }

  .mode-btn,
  .category-tab {
    padding-inline: 10px;
  }

  .toggle-btn {
    padding-inline: 12px;
  }

  .smartlink-inline {
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mode-btn,
  .category-tab,
  .secondary-btn,
  .generate,
  .username,
  .insight-chip,
  .leaderboard-row,
  .insight-card,
  .toggle-btn,
  .field-input,
  .smartlink-banner {
    transition: none;
  }

  .generate::before,
  .generate.pulse,
  .copy-msg.is-active {
    animation: none;
  }
}
