@media (min-width: 1280px) {
  .page-shell {
    max-width: 900px;
  }
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  background: radial-gradient(circle at 50% -20%, rgba(34, 255, 153, 0.15), transparent 60%), #020617;
  color: #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  margin: 0;
}

:root {
  --accent-color-1: #22ff99;
  --accent-color-2: #3b82f6;
  --theme-bg-main: #020713;
  --theme-bg-soft: #050b18;
  --theme-accent: #39ffb6;
  --theme-accent-soft: #00c8a5;
  --theme-glow-strong: rgba(57, 255, 182, 0.55);
  --theme-glow-soft: rgba(0, 255, 218, 0.35);
}

/* Theme A: OG Classics (Green/Teal Lab) */
.theme-og {
  --theme-bg-main: #020713;
  --theme-bg-soft: #04141a;
  --theme-accent: #39ffb6;
  --theme-accent-soft: #00c8a5;
  --theme-glow-strong: rgba(57, 255, 182, 0.55);
  --theme-glow-soft: rgba(0, 255, 218, 0.35);
}

/* Theme B: Relationship/Persona (Pink/Purple) */
.theme-rel {
  --theme-bg-main: #130218;
  --theme-bg-soft: #1b051f;
  --theme-accent: #ff64e0;
  --theme-accent-soft: #c94bff;
  --theme-glow-strong: rgba(255, 100, 224, 0.55);
  --theme-glow-soft: rgba(201, 75, 255, 0.35);
}

/* Theme C: Internet/Culture (Blue/Yellow Screen) */
.theme-net {
  --theme-bg-main: #020622;
  --theme-bg-soft: #040824;
  --theme-accent: #46e1ff;
  --theme-accent-soft: #7f8dff;
  --theme-glow-strong: rgba(70,225,255,0.55);
  --theme-glow-soft: rgba(255,217,103,0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.page-shell {
  width: 100%;
  max-width: min(100vw, 720px);
  margin: 0 auto;
  padding: 24px 16px 72px;
}

.lab-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.lab-top-bar .back-link {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .page-shell {
    padding-bottom: 96px;
  }
}

@media (min-width: 1024px) {
  .page-shell {
    padding-top: 120px;
  }
}

.hub-shell {
  padding-top: 64px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(34, 255, 153, 0.4);
  background: rgba(2, 6, 23, 0.75);
  color: #bbf7d0;
  text-decoration: none;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 18px;
  box-shadow: 0 0 18px rgba(34, 255, 153, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.back-link::before {
  font-weight: 600;
  letter-spacing: normal;
}

.back-link:hover,
.back-link:focus-visible {
  border-color: rgba(34, 255, 153, 0.8);
  box-shadow: 0 0 28px rgba(34, 255, 153, 0.4);
  transform: translateX(-3px);
  color: #ecfccb;
}

@media (min-width: 768px) {
  .hub-shell {
    padding-top: 80px;
  }
}

@media (max-width: 480px) {
  .hub-shell {
    padding-top: 32px;
  }

  .back-link {
    letter-spacing: 0.18em;
    font-size: 10px;
    padding: 6px 12px;
  }

  .hero-title.site-logo {
    font-size: clamp(30px, 9vw, 42px);
    letter-spacing: 0.04em;
  }

  .lab-title {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1;
  }

  .site-logo {
    margin-top: 16px;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    max-width: 100%;
  }

  .site-logo::before {
    width: 260px;
    height: 110px;
    filter: blur(26px);
  }
}

.hero-kicker {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
  color: #22c55e;
  text-align: center;
  margin-bottom: 8px;
  align-items: flex-start;
}

.hero-title {
  font-family: "Impact", "Anton", system-ui, sans-serif;
  font-size: 56px;
  line-height: 0.85;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 14px;
}

.site-logo {
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #f9fafb;
  margin: 24px 0 20px;
  
  animation: neonPulse 2.8s ease-in-out infinite;
  white-space: nowrap;
  display: block;
}

.site-logo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 140px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25), rgba(15, 23, 42, 0));
  filter: blur(26px);
  z-index: -1;
  pointer-events: none;
}

.about-page .hero-title.site-logo {
  white-space: normal;
  line-height: 1;
  font-size: clamp(32px, 8vw, 52px);
  padding: 0 12px;
}

@keyframes neonPulse {
  0% {
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.28), 0 0 18px rgba(16, 185, 129, 0.24);
  }
  50% {
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.56), 0 0 34px rgba(16, 185, 129, 0.42);
  }
  100% {
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.28), 0 0 18px rgba(16, 185, 129, 0.24);
  }
}
.hero-subtext {
  max-width: 640px;
  margin: 10px auto 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 17px;
  line-height: 1.6;
}
.hero-subtext.is-hidden {
  opacity: 0;
}

50% { opacity: 1; transform: translateY(0); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-4px); filter: blur(1px); }
}
50% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes hero-pulse-center {
  0% { opacity: 0; transform: scale(0.9); }
  30% { opacity: 1; transform: scale(1.15); }
  60% { opacity: 0.9; transform: scale(1.05); }
  90% { opacity: 0.45; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(0.95); }
}
@keyframes hero-pulse-line {
  0% { opacity: 0.4; }
  40% { opacity: 0.9; }
  80% { opacity: 0.5; }
  100% { opacity: 0; }
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 26px;
  justify-content: center;
}
.hero-chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(57, 255, 182, 0.28);
  background: rgba(57, 255, 182, 0.06);
  color: #c8ffe8;
  font-size: 12px;
  letter-spacing: 0.02em;
}
@media (max-width: 768px) {
  .hero-subtext { margin: 12px 0 12px; font-size: 15px; }
  .hero-meta { margin: 10px 0 18px; }
  .hero-chip { font-size: 11px; }
}

.btn-primary {
  width: 100%;
  border: none;
  border-radius: 9999px;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 16px;
  background: linear-gradient(90deg, var(--accent-color-1, #22ff99), var(--accent-color-2, #3b82f6));
  color: #020617;
  box-shadow: 0 0 40px var(--accent-color-1, #22ff99);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px var(--accent-color-1, #22ff99);
  filter: brightness(1.05);
}

.btn-primary:disabled {
  opacity: 0.45;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-outline,
.ghost-box {
  width: 100%;
  border-radius: 9999px;
  padding: 12px 18px;
  font-size: 14px;
  border: 1px dashed rgba(34, 255, 153, 0.35);
  color: #a7f3d0;
  background: transparent;
  text-align: center;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.btn-outline:hover {
  background: rgba(34, 255, 153, 0.05);
  border-color: rgba(34, 255, 153, 0.75);
  color: #22ff99;
  transform: translateY(-1px);
}

.input-main {
  width: 100%;
  border-radius: 28px;
  padding: 12px 18px;
  border: 1px solid var(--accent-color-1, #22ff99);
  background: transparent;
  color: #e5e7eb;
  font-size: 15px;
  height: 48px;
  display: block;
  margin: 0 auto;
  outline: none;
  box-shadow: 0 0 0 0 rgba(34, 255, 153, 0);
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.input-main::placeholder {
  color: #6b7280;
}

.input-main:focus {
  border-color: var(--accent-color-1, #22ff99);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 22px var(--accent-color-1, #22ff99);
}

.usage-text {
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: #94a3b8;
}

.tool-list {
  display: grid;
  gap: 14px;
}

.tool-groups {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 6px;
}
.tool-groups .tool-cluster:first-child {
  margin-top: 6px;
}
.hud-divider {
  position: relative;
  margin: 14px 0 10px;
  text-align: center;
  color: #7eead1;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}
.hud-divider::before,
.hud-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 234, 209, 0.5)); animation: hudShimmer 1.2s ease-in-out infinite alternate;
}
.hud-divider::before {
  left: 10%;
}
.hud-divider::after {
  right: 10%;
  transform: scaleX(-1);
}

.tool-cluster {
  border-top: 1px solid rgba(34, 255, 153, 0.12);
  padding-top: 24px;
}

.tool-cluster:first-child {
  border-top: none;
  padding-top: 0;
}

.tool-cluster .lab-kicker {
  text-align: left;
  color: #a7f3d0;
  margin-bottom: 18px;
}

.tool-card {
  --card-border: rgba(34, 255, 153, 0.18);
  --card-border-hover: rgba(34, 255, 153, 0.4);
  --card-bg: linear-gradient(180deg, rgba(4, 8, 14, 0.8), rgba(3, 6, 11, 0.9));
  --card-bg-hover: linear-gradient(180deg, rgba(6, 10, 16, 0.86), rgba(3, 6, 11, 0.95));
  --card-shadow: rgba(34, 255, 153, 0.05);
  --card-shadow-hover: rgba(34, 255, 153, 0.2);
  --card-accent: #22ff99;
  --title-color: #e5e7eb;
  --desc-color: #9ca3af;
  border-radius: 28px;
  border: 1px solid var(--card-border);
  padding: 40px 26px 70px;
  margin-bottom: 14px;
  background: var(--card-bg);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55), 0 0 24px var(--card-shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--card-border-hover);
  box-shadow: 0 0 32px var(--card-shadow-hover);
  background: var(--card-bg-hover);
}

.tool-card[data-theme="neon-green"] {
  --card-border: rgba(34, 255, 153, 0.45);
  --card-border-hover: rgba(34, 255, 153, 0.8);
  --card-bg: linear-gradient(135deg, rgba(6, 20, 17, 0.95), rgba(6, 24, 35, 0.9));
  --card-bg-hover: linear-gradient(135deg, rgba(7, 32, 25, 0.98), rgba(5, 20, 32, 0.95));
  --card-shadow: rgba(34, 255, 153, 0.18);
  --card-shadow-hover: rgba(34, 255, 153, 0.38);
  --card-accent: #22ff99;
  --title-color: #ecfdf3;
  --desc-color: #bbf7d0;
}

.tool-card[data-theme="acid-yellow"] {
  --card-border: rgba(250, 204, 21, 0.45);
  --card-border-hover: rgba(250, 204, 21, 0.76);
  --card-bg: linear-gradient(135deg, rgba(26, 19, 4, 0.95), rgba(12, 15, 33, 0.92));
  --card-bg-hover: linear-gradient(135deg, rgba(34, 24, 4, 0.98), rgba(12, 15, 33, 0.97));
  --card-shadow: rgba(250, 204, 21, 0.12);
  --card-shadow-hover: rgba(250, 204, 21, 0.3);
  --card-accent: #facc15;
  --title-color: #fef9c3;
  --desc-color: #fde68a;
}

.tool-card[data-theme="cyber-red"] {
  --card-border: rgba(248, 113, 113, 0.5);
  --card-border-hover: rgba(248, 113, 113, 0.85);
  --card-bg: linear-gradient(180deg, rgba(18, 7, 10, 0.82), rgba(10, 6, 10, 0.92));
  --card-bg-hover: linear-gradient(180deg, rgba(22, 8, 12, 0.9), rgba(12, 8, 12, 0.97));
  --card-shadow: rgba(248, 113, 113, 0.1);
  --card-shadow-hover: rgba(248, 113, 113, 0.32);
  --card-accent: #f87171;
  --title-color: #fee2e2;
  --desc-color: #fecdd3;
}

.tool-card[data-theme="violet-glitch"] {
  --card-border: rgba(192, 132, 252, 0.5);
  --card-border-hover: rgba(192, 132, 252, 0.85);
  --card-bg: linear-gradient(180deg, rgba(16, 8, 24, 0.84), rgba(9, 7, 20, 0.92));
  --card-bg-hover: linear-gradient(180deg, rgba(20, 9, 28, 0.92), rgba(10, 9, 24, 0.97));
  --card-shadow: rgba(192, 132, 252, 0.12);
  --card-shadow-hover: rgba(192, 132, 252, 0.34);
  --card-accent: #c084fc;
  --title-color: #f3e8ff;
  --desc-color: #e9d5ff;
}

.tool-card[data-theme="neon-blue"] {
  --card-border: rgba(56, 189, 248, 0.45);
  --card-border-hover: rgba(56, 189, 248, 0.8);
  --card-bg: linear-gradient(180deg, rgba(6, 10, 20, 0.82), rgba(4, 8, 16, 0.9));
  --card-bg-hover: linear-gradient(180deg, rgba(8, 14, 26, 0.92), rgba(5, 10, 18, 0.97));
  --card-shadow: rgba(56, 189, 248, 0.1);
  --card-shadow-hover: rgba(56, 189, 248, 0.3);
  --card-accent: #38bdf8;
  --title-color: #e0f2fe;
  --desc-color: #bae6fd;
}

.tool-card[data-theme="neon-pink"] {
  --card-border: rgba(251, 113, 133, 0.5);
  --card-border-hover: rgba(251, 113, 133, 0.85);
  --card-bg: linear-gradient(180deg, rgba(26, 8, 14, 0.84), rgba(14, 8, 14, 0.92));
  --card-bg-hover: linear-gradient(180deg, rgba(30, 9, 16, 0.92), rgba(16, 9, 16, 0.97));
  --card-shadow: rgba(251, 113, 133, 0.12);
  --card-shadow-hover: rgba(251, 113, 133, 0.34);
  --card-accent: #fb7185;
  --title-color: #ffe4e6;
  --desc-color: #fecdd3;
}

.tool-icon-badge {
  position: relative;
  margin-right: 8px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--card-accent);
  filter:
      drop-shadow(0 0 42px color-mix(in srgb, var(--card-accent) 85%, transparent))
      drop-shadow(0 0 52px rgba(0, 0, 0, 0.7));
  animation: iconFloat var(--float-duration, 5.8s) ease-in-out infinite alternate;
  animation-delay: var(--float-delay, 0s);
  opacity: 1;
  transition: opacity 0.2s ease;
}

.tool-icon-badge svg,
.tool-icon-badge img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 34px color-mix(in srgb, var(--card-accent) 90%, transparent));
  animation: iconPulse var(--pulse-duration, 2.8s) ease-in-out infinite;
  animation-delay: var(--pulse-delay, 0s);
}

.tool-icon-badge::before {
  content: "";
  position: absolute;
  inset: -34px;
  background: radial-gradient(circle, color-mix(in srgb, var(--card-accent) 55%, transparent) 0%, transparent 72%);
  filter: blur(58px);
  opacity: 1;
  z-index: 0;
  animation: haloPulse var(--pulse-duration, 2.8s) ease-in-out infinite;
  animation-delay: var(--halo-delay, 0s);
}

.tool-icon-badge svg {
  stroke: currentColor;
  fill: none;
  position: relative;
  z-index: 1;
}

.tool-icon-badge svg [fill]:not([fill="none"]) {
  fill: currentColor;
}

.icon-anim.anim-radar svg {
  animation:
    iconPulse var(--pulse-duration, 2.8s) ease-in-out infinite,
    radarSweep 7s linear infinite;
  animation-delay: var(--pulse-delay, 0s), calc(var(--pulse-delay, 0s) * 0.6);
  transform-origin: center;
}

.icon-anim.anim-electric svg {
  animation:
    iconPulse var(--pulse-duration, 2.8s) ease-in-out infinite,
    electricPulse 4.4s ease-in-out infinite;
  animation-delay: var(--pulse-delay, 0s), calc(var(--pulse-delay, 0s) * 0.8);
}

.icon-anim.anim-fire svg {
  animation:
    iconPulse var(--pulse-duration, 2.8s) ease-in-out infinite,
    fireWaver 3.6s ease-in-out infinite;
  animation-delay: var(--pulse-delay, 0s), calc(var(--pulse-delay, 0s) * 0.5);
}

.icon-anim.anim-smooth svg {
  animation: iconPulse var(--pulse-duration, 2.8s) ease-in-out infinite;
  animation-delay: var(--pulse-delay, 0s);
}

@keyframes iconPulse {
  0% {
    filter: drop-shadow(0 0 22px color-mix(in srgb, currentColor 70%, transparent)) brightness(1.02);
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 44px color-mix(in srgb, currentColor 95%, transparent)) brightness(1.15);
    transform: scale(1.04);
  }
  100% {
    filter: drop-shadow(0 0 22px color-mix(in srgb, currentColor 70%, transparent)) brightness(1.02);
    transform: scale(1);
  }
}

@keyframes haloPulse {
  0% {
    opacity: 0.9;
    filter: blur(52px);
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    filter: blur(64px);
    transform: scale(1.06);
  }
  100% {
    opacity: 0.9;
    filter: blur(52px);
    transform: scale(0.96);
  }
}

@keyframes iconFloat {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-1.4px);
  }
}

@keyframes radarSweep {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes electricPulse {
  0% {
    filter: drop-shadow(0 0 26px color-mix(in srgb, currentColor 75%, transparent)) brightness(1.05);
  }
  20% {
    filter: drop-shadow(0 0 48px color-mix(in srgb, currentColor 98%, transparent)) brightness(1.18);
  }
  40% {
    filter: drop-shadow(0 0 26px color-mix(in srgb, currentColor 75%, transparent)) brightness(1.04);
  }
  100% {
    filter: drop-shadow(0 0 26px color-mix(in srgb, currentColor 75%, transparent)) brightness(1.05);
  }
}

@keyframes fireWaver {
  0% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.01) rotate(-0.4deg);
  }
  50% {
    transform: scale(1.02) rotate(0.3deg);
  }
  75% {
    transform: scale(0.99) rotate(-0.2deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* === Neon heat flame base === */
.heat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.heat-flame {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 16px;
  border-radius: 999px;
  animation: flame-flicker 1.3s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255, 153, 51, 0.8));
}

/* 外圈能量脉冲 */
.heat-flame::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(255, 180, 90, 0.45);
  opacity: 0;
  animation: flame-pulse 1.8s ease-out infinite;
}

.heat-flame::after {
  content: "";
  position: absolute;
  inset: 3px 2px 2px 3px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 20%, #fff6d5 0, #ffb157 45%, transparent 80%);
  opacity: 0.9;
}

.tool-card:hover .heat-flame {
  animation-duration: 0.9s;
  filter: drop-shadow(0 0 10px rgba(255, 180, 90, 1));
}

.tool-card:hover .heat-flame::before {
  animation-duration: 1.1s;
}

/* ==== keyframes ==== */

/* 火焰轻微抖动 + 亮度闪烁 */
@keyframes flame-flicker {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.9;
  }
  20% {
    transform: translateY(-1px) scale(1.03);
    opacity: 1;
  }
  40% {
    transform: translateY(1px) scale(0.97);
    opacity: 0.8;
  }
  55% {
    transform: translateY(-0.5px) scale(1.06);
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(255, 210, 120, 1));
  }
  75% {
    transform: translateY(0.5px) scale(0.98);
    opacity: 0.85;
  }
}

@keyframes flame-pulse {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  30% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .heat-flame,
  .heat-flame::before {
    animation: none !important;
    transform: none !important;
  }
}

.tool-card-header {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 8px;
  align-items: flex-start;
}

.tool-title-wrap {
  flex: 1;
  min-width: 0;
}

.tool-meta {
  flex-shrink: 0;
  width: auto;
  margin-left: 0;
  position: absolute;
  left: 20px;
  bottom: 18px;
}

.tool-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.2em;
  color: var(--title-color);
}

.tool-desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--desc-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.6em;
}

.tool-cta {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c1ffe3;
  position: absolute;
  right: 20px;
  bottom: 18px;
}

.lab-kicker {
  text-align: center;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 11px;
  color: #22c55e;
  margin-bottom: 8px;
  align-items: flex-start;
}
.lab-note {
  text-align: left;
  margin: 6px 0 18px;
  max-width: 960px;
  align-self: flex-start;
  color: #b5c7d2;
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.lab-title {
  text-align: center;
  font-family: "Impact", "Anton", system-ui, sans-serif;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.lab-subtitle {
  text-align: center;
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 28px;
  visibility: hidden;
}

.lab-subtitle.is-ready {
  visibility: visible;
}
.heat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 500;
  color: #f97316;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(249, 115, 22, 0.5);
  margin: 10px auto 20px;
}

.heat-chip span.value {
  font-weight: 600;
}

.lab-panel {
  border-radius: 28px;
  padding: 26px 24px 32px;
  border: 1px solid rgba(31, 41, 55, 1);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 1), rgba(3, 7, 18, 1));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.lab-loading {
  border-radius: 24px;
  padding: 26px 28px;
  border: 1px dashed rgba(59, 130, 246, 0.4);
  background: rgba(5, 12, 26, 0.85);
  box-shadow: inset 0 0 18px rgba(34, 255, 153, 0.08);
  min-height: 150px;
  margin-top: 6px;
}

.lab-loading-core {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lab-loading-kicker {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #38bdf8;
  margin: 0;
}

.lab-loading-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lab-loading-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle, #22ff99 0%, #0ea5e9 70%);
  box-shadow: 0 0 18px rgba(34, 255, 153, 0.6);
  animation: pulseDot 0.9s ease-in-out infinite;
  flex-shrink: 0;
}

.lab-loading-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lab-loading-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab-loading-sub {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3af;
}

.lab-loading-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(9, 16, 32, 0.9);
  overflow: hidden;
  position: relative;
}

.lab-loading-bar-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #22ff99, #3b82f6, #22ff99);
  animation: loadingBar 1.4s linear infinite;
}

.share-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ad-slot {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-top: 20px;
}

.ad-slot--fallback {
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  padding: 12px 16px;
  background: rgba(4, 10, 22, 0.6);
}

.ad-fallback {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  align-items: center;
}

.viral-orb {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 255, 153, 0.5), rgba(15, 23, 42, 0) 70%);
  animation: orbPulse 2.6s ease-in-out infinite;
}

.viral-orb span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 50%;
  animation: orbRotate 6s linear infinite;
}

.viral-orb span:nth-child(2) {
  inset: 8px;
  border-color: rgba(34, 255, 153, 0.5);
  animation-duration: 5s;
}

.viral-orb span:nth-child(3) {
  inset: 16px;
  border-color: rgba(168, 85, 247, 0.45);
  animation-duration: 4s;
}

.ad-fallback-copy {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.ad-slot {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
}

.lab-guide {
  margin-top: 28px;
  padding: 24px 22px;
  border-radius: 24px;
  border: 1px solid rgba(34, 255, 153, 0.15);
  background: rgba(2, 6, 23, 0.6);
  box-shadow: 0 18px 30px rgba(2, 6, 23, 0.85);
}

.lab-guide h3 {
  margin-top: 0;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a7f3d0;
}

.lab-guide .guide-grid {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

@media (min-width: 720px) {
  .lab-guide .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lab-guide h4 {
  margin-top: 18px;
  margin-bottom: 8px;
  align-items: flex-start;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0fff4;
}

.lab-guide p,
.lab-guide li {
  font-size: 14px;
  color: #d1d5db;
  line-height: 1.6;
}

.lab-guide ul {
  padding-left: 18px;
  margin: 0;
}

#resultCard {
  margin-top: 6px;
  border-radius: 24px;
  border: 1px solid rgba(34, 255, 153, 0.35);
  padding: 28px 22px;
  background: radial-gradient(circle at top left, rgba(34, 255, 153, 0.18), rgba(3, 7, 18, 1));
  box-shadow: 0 0 40px rgba(34, 255, 153, 0.15);
  display: none;
}

.heat-sticker {
  position: absolute;
  top: -14px;
  right: 16px;
  padding: 6px 12px;
  background: conic-gradient(
    from 160deg,
    #f97316,
    #ec4899,
    #6366f1,
    #f97316
  );
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-radius: 9999px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
  transform: rotate(-3deg);
}

#resultCard .result-title {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a7f3d0;
  margin-bottom: 6px;
}

#resultCard .result-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  align-items: flex-start;
}

#resultCard .result-score {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}

#resultCard .result-bar {
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 1);
  margin-bottom: 8px;
  align-items: flex-start;
  overflow: hidden;
}

#resultCard .result-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-color-1, #22ff99), var(--accent-color-2, #3b82f6));
}

#resultCard .result-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

#resultCard .result-lines {
  font-size: 13px;
  color: #d1d5db;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  background: rgba(3, 7, 18, 0.95);
  border: 1px solid rgba(34, 255, 153, 0.45);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  z-index: 999;
  animation: toast-pop 3s ease forwards;
}

@keyframes toast-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  10% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}

footer,
.lab-footnote {
  margin-top: 36px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e5e7eb;
  opacity: 0.35;
}

.site-footer {
  margin-top: 48px;
  padding: 32px 20px 24px;
  border-top: 1px solid rgba(34, 255, 153, 0.15);
  text-align: center;
}

.site-footer h3 {
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.site-footer p {
  color: #a5b4fc;
  line-height: 1.6;
  margin-bottom: 10px;
  font-size: 14px;
}

.site-footer .copyright {
  color: #7dd3fc;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 16px;
}

.site-footer .policy-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer .policy-links a {
  color: #cbd5f5;
  opacity: 0.85;
}

.site-footer .policy-links a:hover {
  color: #22ff99;
  opacity: 1;
}

.site-footer .recaptcha-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(203, 213, 245, 0.7);
  line-height: 1.4;
}

.site-footer .recaptcha-note a {
  color: #8fffe0;
  text-decoration: underline;
}

.footer-tagline {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(160, 215, 255, 0.65);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.heat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 7px;
  border-radius: 11px;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: #fed7aa;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.1);
  box-shadow: 0 0 6px rgba(248, 113, 113, 0.28);
  margin: 4px 0 0;
  white-space: nowrap;
  max-width: 40vw;
}

.heat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 500;
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.5);
  background: rgba(15, 23, 42, 0.9);
  margin: 8px auto 18px;
}

.heat-flame {
  width: 12px;
  height: 16px;
  display: inline-block;
  position: relative;
  border-radius: 40% 40% 60% 60%;
  background: linear-gradient(180deg, #fb923c, #f97316 60%, #facc15);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.6);
}

.heat-flame::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 9px;
  left: 2px;
  bottom: 1px;
  border-radius: 40% 40% 60% 60%;
  background: linear-gradient(180deg, #fde68a, #fb923c);
}

.heat-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #f97316;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.85);
  display: inline-block;
  flex-shrink: 0;
}

.limit-alert {
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(127, 29, 29, 0.25);
  color: #fecaca;
  font-size: 13px;
  text-align: center;
  margin-bottom: 16px;
}

.credit-hint {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: #cbd5e1;
}

.credit-hint.hidden {
  display: none;
}

.hidden {
  display: none !important;
}

.loading-note {
  text-align: center;
  font-size: 12px;
  color: #94a3af;
  margin-top: -6px;
  margin-bottom: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.social-proof-note {
  text-align: center;
  font-size: 12px;
  color: #7dd3fc;
  margin-top: 2px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.86;
  text-shadow: 0 0 12px rgba(125, 211, 252, 0.25);
}

.guide-extras {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-stack {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.35);
}

.guide-label {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #a7f3d0;
  margin-bottom: 8px;
  align-items: flex-start;
}

.guide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  color: #e5e7eb;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.sample-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  color: #e5e7eb;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.35);
}

.result-card {
  position: relative;
  margin: 26px auto 0;
  width: 100%;
  max-width: min(540px, calc(100vw - 56px));
  min-height: 400px;
  border-radius: 30px;
  border: 1px solid rgba(34, 255, 153, 0.45);
  background: rgba(2, 6, 23, 0.92);
  padding: clamp(14px, 2.2vw, 24px);
  box-shadow:
    0 45px 120px rgba(2, 6, 23, 0.85),
    0 0 70px rgba(34, 255, 153, 0.25);
  backdrop-filter: blur(26px);
  overflow: hidden;
  display: none;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  --card-accent-1: var(--accent-color-1, #22ff99);
  --card-accent-2: var(--accent-color-2, #3b82f6);
}

.result-card.result-card--fresh {
  animation: resultFresh 0.6s ease-out;
}

.result-card.result-card--fresh::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 55%);
  opacity: 0;
  animation: gridPulse 0.8s ease-out;
  pointer-events: none;
}

.result-card:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 255, 153, 0.12), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.12), transparent 40%);
  opacity: 0.65;
}

@keyframes resultFresh {
  0% { opacity: 0; transform: scale(0.98); box-shadow: 0 0 0 rgba(0,0,0,0); }
  50% { opacity: 1; transform: scale(1.0); box-shadow: 0 0 32px rgba(59, 130, 246, 0.28); }
  100% { opacity: 1; transform: scale(1.0); box-shadow: 0 45px 120px rgba(2, 6, 23, 0.85), 0 0 70px rgba(34, 255, 153, 0.25); }
}

@keyframes gridPulse {
  0% { opacity: 0.18; }
  100% { opacity: 0; }
}

.result-card.is-generating {
  animation: cardGlow 1.5s ease-in-out infinite;
}
.result-card[data-theme="neon-blue"] {
  --card-accent-1: #38bdf8;
  --card-accent-2: #6366f1;
}
.result-card[data-theme="neon-pink"] {
  --card-accent-1: #ff3b81;
  --card-accent-2: #ff6b3b;
}
.result-card[data-theme="acid-yellow"] {
  --card-accent-1: #facc15;
  --card-accent-2: #f97316;
}
.result-card[data-theme="cyber-red"] {
  --card-accent-1: #fb7185;
  --card-accent-2: #ef4444;
}
.result-card[data-theme="violet-glitch"] {
  --card-accent-1: #a855f7;
  --card-accent-2: #6366f1;
}

.result-card[data-danger="moderate"] .result-score-number {
  color: #facc15;
  text-shadow:
    0 0 25px rgba(250, 204, 21, 0.7),
    0 0 60px rgba(250, 204, 21, 0.35);
}

.result-card[data-danger="lethal"] .result-score-number {
  color: #fb7185;
  text-shadow:
    0 0 25px rgba(251, 113, 133, 0.8),
    0 0 60px rgba(239, 68, 68, 0.4);
}

.result-card.capture-mode {
  width: 100% !important;
  max-width: min(540px, calc(100vw - 56px));
  min-height: auto;
  padding: clamp(14px, 2.2vw, 24px);
  border-radius: 30px;
  margin: 26px auto 0;
}

body.capture-active {
  overflow: hidden;
}

.result-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(34, 255, 153, 0.08) 0,
      rgba(34, 255, 153, 0.08) 1px,
      transparent 1px,
      transparent 42px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(59, 130, 246, 0.1) 0,
      rgba(59, 130, 246, 0.1) 1px,
      transparent 1px,
      transparent 42px
    );
  opacity: 0.55;
  mix-blend-mode: screen;
  z-index: 1;
  pointer-events: none;
}

.result-card::after {
  content: "";
  position: absolute;
  inset: -70px;
  background: radial-gradient(circle, rgba(34, 255, 153, 0.18), transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.result-card > * {
  position: relative;
  z-index: 2;
}

.result-card .result-kicker {
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: #7dd3fc;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
}
.result-card .result-kicker::before,
.result-card .result-kicker::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--card-accent-1, #22ff99), var(--card-accent-2, #3b82f6));
  box-shadow: 0 0 10px rgba(34, 255, 153, 0.6);
}
.result-card .result-kicker::before {
  margin-right: 8px;
}
.result-card .result-kicker::after {
  margin-left: 8px;
}

.result-card .result-title {
  font-size: 19px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #f9fafb;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.result-card .result-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22ff99, #3b82f6);
  box-shadow: 0 0 12px rgba(34, 255, 153, 0.8);
}

.result-handle {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: none;
  color: #bae6fd;
  margin-bottom: 8px;
  align-items: flex-start;
}

.result-card .result-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.result-score-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0 12px;
  margin-bottom: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.result-score-number {
  font-size: clamp(54px, 9vw, 108px);
  font-weight: 900;
  color: var(--card-accent-1, #22ff99);
  text-shadow:
    0 0 25px rgba(34, 255, 153, 0.75),
    0 0 60px rgba(59, 130, 246, 0.35);
  animation: pulseScore 3s ease-in-out infinite;
  line-height: 1;
}

.result-bar {
  height: 18px;
  border-radius: 999px;
  background: rgba(1, 5, 14, 0.75);
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: inset 0 0 12px rgba(34, 255, 153, 0.25);
}

.result-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--card-accent-1, #22ff99), var(--card-accent-2, #3b82f6));
  box-shadow:
    0 0 20px rgba(34, 255, 153, 0.55),
    0 0 40px rgba(59, 130, 246, 0.4);
}

.result-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin: 10px 0 8px;
}

.rarity-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e5f9ff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.12);
}

.discovery-panel {
  margin-top: 18px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 18px;
  background: rgba(7, 12, 24, 0.75);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35), 0 0 24px rgba(59, 130, 246, 0.15);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.discovery-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.discovery-title {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: #a7f3d0;
}

.discovery-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discovery-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.discovery-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 255, 153, 0.6);
  box-shadow: 0 0 18px rgba(34, 255, 153, 0.3);
  color: #f9fafb;
}

.result-meta.result-meta-extra {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  margin-top: 4px;
}

.result-meta:empty {
  display: none;
}

.result-meta .meta-item {
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  padding: 8px 12px;
  background: rgba(2, 6, 23, 0.65);
}

.result-meta .meta-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 4px;
}

.result-meta .meta-value {
  font-size: 14px;
  font-weight: 600;
  color: #e0f2fe;
  letter-spacing: 0.04em;
}

.result-footer-note {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8ab4ff;
  opacity: 0.8;
  text-shadow: 0 0 12px rgba(138, 180, 255, 0.35);
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.result-tags .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #02111d;
  background: linear-gradient(
    120deg,
    var(--card-accent-1, rgba(34, 255, 153, 0.95)),
    var(--card-accent-2, rgba(59, 130, 246, 0.8))
  );
  border: 1px solid rgba(34, 255, 153, 0.45);
  box-shadow:
    0 10px 35px rgba(34, 255, 153, 0.35),
    inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.result-tags .tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 10px;
  background: #0f172a;
  opacity: 0.7;
}

.result-lines p {
  margin-bottom: 10px;
  color: #e0f2fe;
  line-height: 1.7;
  font-size: 15px;
}

.result-brand {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.result-brand-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.result-brand-label {
  font-size: 10px;
  color: rgba(165, 243, 252, 0.85);
}

.result-brand-note {
  font-size: 8px;
  color: #fcd34d;
  opacity: 0.65;
}

.result-brand-qr {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid rgba(163, 230, 255, 0.35);
  background: rgba(2, 6, 23, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 0 14px rgba(15, 118, 110, 0.5);
}

.result-brand-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.result-actions button {
  flex: 1;
  min-width: 160px;
}

.next-labs {
  margin-top: 20px;
  border: 1px solid rgba(34, 255, 153, 0.2);
  border-radius: 26px;
  padding: 18px 20px 10px;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: inset 0 0 24px rgba(2, 6, 23, 0.8);
}

.next-labs.hidden {
  display: none;
}

.next-labs-title {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #a7f3d0;
  margin-bottom: 12px;
}

.next-labs-grid {
  display: grid;
  gap: 8px;
}

.next-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(4, 10, 22, 0.9);
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.next-card:hover {
  border-color: rgba(59, 130, 246, 0.6);
  transform: translateY(-2px);
  background: rgba(4, 10, 22, 1);
}

.next-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 4px;
}

.next-card-desc {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
}

.next-card-cta {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #a7f3d0;
}

.copy-toast {
  width: 100%;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #a7f3d0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.copy-toast.show {
  opacity: 1;
}

.share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.share-modal {
  width: 100%;
  max-width: 360px;
  background: rgba(3, 7, 18, 0.95);
  border: 1px solid rgba(34, 255, 153, 0.35);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.9);
  padding: 20px 22px 18px;
  color: #d1f5ff;
}

.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.share-modal-header p {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a7f3d0;
}

.share-modal-header .close-btn {
  border: none;
  background: transparent;
  color: #d1d5db;
  font-size: 18px;
  cursor: pointer;
}

.share-modal-subtext {
  margin: 12px 0;
  font-size: 13px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.share-modal-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.share-modal-platforms button {
  border: 1px dashed rgba(34, 197, 94, 0.45);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.6);
  color: #c7f9cc;
  padding: 10px 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.share-modal-platforms button:hover {
  border-color: rgba(34, 197, 94, 0.85);
  background: rgba(34, 197, 94, 0.1);
}

.share-copy-block {
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 18px;
  padding: 12px 14px 14px;
  margin: 14px 0 20px;
  background: rgba(8, 19, 43, 0.8);
}

.share-copy-section {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.25);
}

.share-copy-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.share-copy-section.hidden {
  display: none;
}

.share-copy-label {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a7f3d0;
}

.share-copy-text {
  font-size: 14px;
  color: #f1f5f9;
  line-height: 1.5;
  margin-bottom: 10px;
}

.share-copy-copy {
  border: 1px solid rgba(34, 255, 153, 0.35);
  border-radius: 12px;
  background: transparent;
  color: #befae2;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 10px;
  cursor: pointer;
}

.share-copy-copy:hover {
  border-color: rgba(34, 255, 153, 0.7);
  color: #22ff99;
}

.share-image-block {
  border: 1px dashed rgba(59, 130, 246, 0.4);
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.share-image-block.hidden {
  display: none;
}

.share-image-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.share-image-actions button {
  flex: 1;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.5);
  background: rgba(4, 10, 22, 0.85);
  color: #d1f5ff;
  padding: 10px 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.share-image-actions button:hover {
  border-color: rgba(59, 130, 246, 0.85);
  background: rgba(59, 130, 246, 0.15);
}

.share-modal-done {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 12px 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #020617;
  background: linear-gradient(90deg, #22ff99, #3b82f6);
  box-shadow: 0 0 24px rgba(34, 255, 153, 0.4);
  cursor: pointer;
}

.has-credit-indicator .credit-indicator {
  position: relative;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(148, 163, 184, 0.6);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.92);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.5);
  color: #e0f2fe;
  font-weight: 700;
  letter-spacing: 0.02em;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.credit-indicator-value {
  font-size: 13px;
}

.has-credit-indicator .credit-indicator:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 26px rgba(34, 255, 153, 0.4);
}

.has-credit-indicator .credit-indicator--danger {
  border-color: rgba(248, 113, 113, 0.9);
  box-shadow: 0 0 14px rgba(248, 113, 113, 0.4);
}

.has-credit-indicator .credit-indicator--caution {
  border-color: rgba(250, 204, 21, 0.9);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.4);
}

.has-credit-indicator .credit-indicator--info {
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.4);
}

.has-credit-indicator .credit-indicator--safe {
  border-color: rgba(34, 255, 153, 0.8);
  box-shadow: 0 0 14px rgba(34, 255, 153, 0.4);
}

.credit-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 4, 12, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.credit-panel-overlay.credit-panel-open {
  display: flex;
}

.credit-panel-overlay.hidden {
  display: none;
}

.credit-panel {
  width: min(360px, 100%);
  background: rgba(4, 10, 22, 0.95);
  border: 1px solid rgba(34, 255, 153, 0.3);
  border-radius: 24px;
  padding: 20px 22px;
  color: #e2e8f0;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.85);
}

.credit-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 12px;
}

.credit-panel-balance {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 8px 0 12px;
}

.credit-panel-balance span {
  font-size: 32px;
  font-weight: 800;
}

.credit-panel-share {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(34, 255, 153, 0.35);
  text-align: center;
}

.credit-panel-share p,
.credit-panel-hint {
  font-size: 12px;
  line-height: 1.4;
}

.credit-panel-share button {
  margin-top: 10px;
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 10px 16px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #22ff99, #3b82f6);
  color: #020617;
  cursor: pointer;
}

.credit-panel-packs {
  display: grid;
  gap: 8px;
}

.credit-pack {
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 18px;
  background: rgba(8, 19, 43, 0.9);
  padding: 12px 16px;
  color: #e0f2fe;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.share-copy-stack {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(34, 255, 153, 0.2);
  background: rgba(4, 10, 22, 0.8);
  box-shadow: inset 0 0 18px rgba(4, 10, 22, 0.6);
}

.share-copy-stack.hidden {
  display: none;
}

.share-copy-title {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
}

.share-copy-note {
  margin: 6px 0 14px;
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: 0.1em;
}

.share-copy-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-copy-item {
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.share-copy-item:hover {
  border-color: rgba(34, 255, 153, 0.6);
  transform: translateY(-2px);
}

.blog-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px 60px;
}

.blog-hero {
  text-align: center;
  margin-bottom: 36px;
}

.blog-hero h1 {
  font-family: "Impact", "Anton", system-ui, sans-serif;
  font-size: clamp(36px, 8vw, 56px);
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.blog-hero p {
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.6;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.blog-filters {
  margin: 12px 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-filter {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #f0f4ff;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.blog-filter.active,
.blog-filter:hover {
  background: #8efb8b;
  color: #041019;
  border-color: transparent;
}

.blog-card {
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 24px;
  background: rgba(2, 6, 23, 0.8);
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.7);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-card h2 {
  margin: 0;
  font-size: 19px;
}

.blog-card h2 a {
  color: #f8fafc;
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: #22ff99;
}

.blog-card p {
  margin: 0;
  color: #cbd5f5;
  line-height: 1.5;
}

.blog-card .blog-tags a {
  font-size: 11px;
}

.blog-card a.blog-read-more {
  align-self: flex-start;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.blog-article {
  border-radius: 32px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 40px 32px;
  background: rgba(2, 6, 23, 0.85);
  box-shadow: 0 30px 60px rgba(2, 6, 23, 0.8);
  margin-bottom: 40px;
}

.blog-article h1 {
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1.15;
  margin-bottom: 12px;
}

.blog-summary {
  font-size: 17px;
  color: #e2e8f0;
  line-height: 1.7;
  margin-bottom: 18px;
}

.blog-meta {
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 18px;
}

.blog-article h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 22px;
}

.blog-article p {
  line-height: 1.75;
  color: #d6dfea;
}

.blog-article ul,
.blog-article ol {
  margin-left: 20px;
  line-height: 1.7;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.blog-tags span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f97316;
}

.blog-tags a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(226, 232, 240, 0.3);
  border-radius: 999px;
  padding: 4px 10px;
  color: #e2e8f0;
}

.blog-group-title {
  width: 100%;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 32px 0 8px;
  color: #8efb8b;
}

.blog-more-reading {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.blog-more-reading p {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.blog-more-reading a {
  display: block;
  color: #f0f4ff;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 6px;
}

.blog-more-reading a:hover {
  color: #8efb8b;
}

.blog-list-grouped {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.blog-links {
  margin-top: 32px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 18px;
}

.blog-links ul {
  margin: 0;
  padding-left: 20px;
}

.blog-related {
  border-radius: 24px;
  border: 1px dashed rgba(34, 255, 153, 0.3);
  padding: 24px;
  background: rgba(4, 12, 24, 0.9);
}

.related-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.related-tools a {
  flex: 1 1 180px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 12px 16px;
  color: #e2e8f0;
  font-size: 14px;
  text-decoration: none;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.blog-pagination a,
.blog-pagination span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: #e2e8f0;
  text-decoration: none;
}

.blog-pagination span {
  background: rgba(34, 255, 153, 0.15);
  border-color: rgba(34, 255, 153, 0.5);
  color: #22ff99;
}

.grecaptcha-badge {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .tool-card {
    padding: 44px 32px 82px;
  }

  .tool-title {
    font-size: 22px;
  }

  .tool-desc {
    font-size: 15px;
  }

  .tool-meta {
    left: 30px;
    bottom: 24px;
  }

  .tool-cta {
    right: 30px;
    bottom: 24px;
  }

  .lab-panel {
    padding: 42px 48px 50px;
  }

  .input-main {
    height: 54px;
    font-size: 16px;
  }

  .btn-primary {
    height: 54px;
    font-size: 17px;
  }

  .lab-title {
    margin-top: 20px;
    font-size: 48px;
    line-height: 1;
  }

  .lab-subtitle {
    margin-bottom: 36px;
  }
}

@media (max-width: 480px) {
  .page-shell,
  .hub-shell {
    padding: 16px;
    overflow-x: hidden;
  }

  .hero-meta {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .tool-list,
  .tool-card {
    width: 100%;
    box-sizing: border-box;
  }

  .tool-card {
    padding: 28px 14px 68px;
  }

  .tool-card-header {
    gap: 8px;
  }

  .tool-icon-badge {
    width: 30px;
    height: 30px;
    margin-right: 8px;
  }

  .tool-title {
    font-size: 19px;
  }

  .tool-title-wrap {
    padding-left: 0;
  }

  .tool-card {
    padding: 32px 18px 74px;
  }

  .tool-meta {
    left: 16px;
    bottom: 14px;
  }

  .tool-cta {
    right: 16px;
    bottom: 14px;
  }

  .heat-tag {
    align-self: flex-start;
    margin-top: 6px;
    font-size: 8px;
    padding: 2px 6px;
  }
}

@media (min-width: 1080px) {
  .result-card {
    padding: 48px 64px;
  }
}

@keyframes cardGlow {
  0% {
  box-shadow:
    0 45px 120px rgba(2, 6, 23, 0.85),
    0 0 70px rgba(34, 255, 153, 0.25);
}
  50% {
    box-shadow:
      0 45px 120px rgba(2, 6, 23, 0.85),
      0 0 90px rgba(59, 130, 246, 0.4);
  }
  100% {
    box-shadow:
      0 45px 120px rgba(2, 6, 23, 0.85),
      0 0 70px rgba(34, 255, 153, 0.25);
  }
}

@keyframes pulseScore {
  0% {
    transform: scale(0.96);
    text-shadow:
      0 0 18px rgba(34, 255, 153, 0.45),
      0 0 40px rgba(59, 130, 246, 0.35);
  }
  50% {
    transform: scale(1.05);
    text-shadow:
      0 0 32px rgba(34, 255, 153, 0.85),
      0 0 80px rgba(59, 130, 246, 0.45);
  }
  100% {
    transform: scale(0.96);
    text-shadow:
      0 0 18px rgba(34, 255, 153, 0.45),
      0 0 40px rgba(59, 130, 246, 0.35);
  }
}

@keyframes pulseDot {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(0.85);
    opacity: 0.8;
  }
}

@keyframes loadingBar {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes adShimmer {
  0% {
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
    opacity: 0.8;
  }
  50% {
    box-shadow: 0 0 14px rgba(34, 255, 153, 0.45);
    opacity: 1;
  }
  100% {
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
    opacity: 0.8;
  }
}

@keyframes orbPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
}

@keyframes orbRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}



@media (max-width: 640px) {
  .result-card {
    width: 100%;
    max-width: calc(100vw - 24px);
    padding: 18px 16px 22px;
  }

  .result-score-row {
    gap: 8px;
  }

  .result-score-number {
    font-size: clamp(50px, 16vw, 85px);
  }

  .result-brand {
    align-items: center;
    text-align: center;
  }

  .result-brand-qr {
    width: 64px;
    height: 64px;
  }
}

/* OG Classics (Green/Teal) */
.tool-cluster[data-cluster="og-viral-classics"] .tool-card {
  background:
    radial-gradient(circle at 0 0, rgba(80, 255, 210, 0.16), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(0, 160, 255, 0.18), transparent 60%),
    #020713;
}

/* Relationship/Persona (Pink/Purple) */
.tool-cluster[data-cluster="relationship-persona-chaos"] .tool-card {
  background:
    radial-gradient(circle at 0 0, rgba(255, 120, 210, 0.16), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(140, 80, 255, 0.20), transparent 60%),
    #130218;
}

.tool-cluster[data-cluster="culture-internet"] .tool-card {
  position: relative;
  background:
    radial-gradient(
      circle at 35% 10%,
      rgba(76, 221, 255, 0.22),
      transparent 60%
    ),
    radial-gradient(
      circle at 80% 85%,
      rgba(255, 210, 120, 0.16),
      transparent 65%
    ),
    linear-gradient(
      135deg,
      #07152c 0%,
      #050c22 45%,
      #07152c 100%
    );
  box-shadow:
    0 0 14px rgba(11, 104, 214, 0.35);
}

.tool-cluster[data-cluster="culture-internet"] .tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  /* 非强烈扫描线，只有一点点明暗起伏 */
  background-image: linear-gradient(
    to bottom,
    rgba(255,255,255,0.03) 0,
    transparent 40%,
    rgba(255,255,255,0.02) 60%,
    transparent 100%
  );
  mix-blend-mode: soft-light;
  opacity: 0.5;
}

/* hover 时稍微加强光，但不再大跳 */
.tool-cluster[data-cluster="culture-internet"] .tool-card:hover {
  box-shadow:
    0 0 20px rgba(76, 221, 255, 0.6),
    0 0 28px rgba(255, 210, 120, 0.3);
}

.tool-cluster[data-cluster="culture-internet"] .tool-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg,
    rgba(120, 220, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(120, 220, 255, 0.10) 100%);
  mix-blend-mode: screen;
  opacity: 0.12;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.tool-cluster[data-cluster="culture-internet"] .tool-card:hover::after {
  opacity: 0.18;
  transform: translateY(0);
}

.tool-cluster[data-cluster="relationship-persona-chaos"] .tool-card {
  position: relative;
}

.tool-cluster[data-cluster="relationship-persona-chaos"] .tool-card::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 100, 224, 0.16) 0%,
    rgba(201, 75, 255, 0.12) 32%,
    rgba(0, 0, 0, 0) 70%);
  filter: blur(12px);
  opacity: 0.24;
  transition: opacity 0.25s ease;
}

.tool-cluster[data-cluster="relationship-persona-chaos"] .tool-card:hover::after {
  opacity: 0.3;
}

/* Page background */
.lab-shell,
.lab-page {
  background-color: var(--theme-bg-main);
  color: #f5f7ff;
}

/* Hero gradient */
.theme-og .lab-hero {
  background:
    radial-gradient(circle at 30% 0, rgba(57,255,182,0.25), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(0,190,255,0.18), transparent 70%),
    var(--theme-bg-main);
}

.theme-rel .lab-hero {
  background:
    radial-gradient(circle at 25% 0, rgba(255,100,224,0.26), transparent 65%),
    radial-gradient(circle at 100% 100%, rgba(201,75,255,0.22), transparent 70%),
    var(--theme-bg-main);
}

.theme-net .lab-hero {
  background:
    radial-gradient(circle at 20% 0, rgba(70,225,255,0.25), transparent 60%),
    radial-gradient(circle at 90% 100%, rgba(255,217,103,0.20), transparent 70%),
    var(--theme-bg-main);
}

/* Control panels and result cards */
.lab-panel,
.result-card {
  background-color: var(--theme-bg-soft);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 0 18px rgba(0,0,0,0.7),
    0 0 24px var(--theme-glow-soft);
}

/* Buttons */
.primary-cta {
  background: var(--theme-accent);
  color: #02040a;
  border-radius: 999px;
  border: none;
  padding: 0.75rem 1.4rem;
  font-weight: 600;
  box-shadow: 0 0 16px var(--theme-glow-strong);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.primary-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px var(--theme-glow-strong);
}

/* Highlight text */
.accent-text,
.score-highlight {
  color: var(--theme-accent);
  text-shadow: 0 0 12px var(--theme-glow-soft);
}

/* Screenshot mode for clean captures */
body.screenshot-mode {
  background: radial-gradient(circle at 20% 0%, rgba(57, 255, 182, 0.08), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(70, 225, 255, 0.08), transparent 50%),
    linear-gradient(180deg, #040a14 0%, #020712 55%, #01050c 100%);
}

body.screenshot-mode .page-shell {
  max-width: 880px;
  margin-inline: auto;
  padding: 28px 18px 48px;
  gap: 12px;
}

body.screenshot-mode .back-link,
body.screenshot-mode .lab-kicker,
body.screenshot-mode .lab-title,
body.screenshot-mode .lab-subtitle,
body.screenshot-mode .heat-chip,
body.screenshot-mode .credit-indicator,
body.screenshot-mode .credit-hint,
body.screenshot-mode .next-labs,
body.screenshot-mode #limitAlert,
body.screenshot-mode .lab-guide,
body.screenshot-mode .site-footer,
body.screenshot-mode .lab-footnote,
body.screenshot-mode #adSlot {
  display: none !important;
}

body.screenshot-mode .mascot-shell {
  display: none !important;
}

body.screenshot-mode .lab-panel {
  background: linear-gradient(145deg, rgba(10, 20, 32, 0.92), rgba(6, 12, 24, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 28px 120px rgba(0, 0, 0, 0.6),
    0 0 32px rgba(57, 255, 182, 0.12),
    0 0 32px rgba(70, 225, 255, 0.12);
  align-items: center;
  padding-top: 26px;
}

body.screenshot-mode .lab-panel input,
body.screenshot-mode .lab-panel .input-main,
body.screenshot-mode .lab-panel #generateBtn,
body.screenshot-mode .lab-panel #loadingNote,
body.screenshot-mode .lab-panel .limit-alert,
body.screenshot-mode #resultActions button:not(.screenshot-toggle),
body.screenshot-mode #resultActions .copy-toast,
body.screenshot-mode .social-proof-note {
  display: none !important;
}

body.screenshot-mode #resultActions {
  justify-content: center;
}

body.screenshot-mode .result-card {
  margin-top: 0;
  width: 100%;
  max-width: 780px;
  box-shadow:
    0 45px 160px rgba(0, 0, 0, 0.7),
    0 0 45px var(--theme-glow-soft);
}

body.screenshot-mode .screenshot-toggle {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 20;
  box-shadow: 0 0 20px rgba(57, 255, 182, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
  body.screenshot-mode .page-shell {
    padding: 20px 14px 36px;
  }
  body.screenshot-mode .result-card {
    max-width: 100%;
  }
}

.mascot-shell {
  position: fixed;
  inset: auto auto 6vh 10vw;
  width: 68px;
  height: 86px;
  z-index: 24;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.9);
  transition: opacity 0.45s ease, transform 0.45s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  will-change: transform, opacity;
}

.mascot-shell.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.mascot-body {
  width: 100%;
  height: 68px;
  filter: drop-shadow(0 0 8px rgba(57, 255, 182, 0.4));
  animation: mascotFloat 5s ease-in-out infinite, mascotWiggle 1.8s ease-in-out infinite;
}

.mascot-shell .mascot-bubble {
  position: relative;
  background: rgba(7, 16, 32, 0.9);
  color: #c4f5ff;
  border: 1px solid rgba(100, 255, 210, 0.6);
  border-radius: 12px;
  padding: 6px 9px;
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(57, 255, 182, 0.25);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mascot-shell.show-bubble .mascot-bubble {
  opacity: 1;
  transform: translateY(-2px);
}

.mascot-shell:hover .mascot-body {
  filter: drop-shadow(0 0 14px rgba(57, 255, 182, 0.55));
}

@keyframes mascotFloat {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -4px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes mascotWiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  50% { transform: rotate(2deg); }
  75% { transform: rotate(-2deg); }
  100% { transform: rotate(0deg); }
}
















.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 26px;
}
.hero-chip {
  --chip-color: #c8ffe8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--chip-color) 80%, transparent);
  background: color-mix(in srgb, var(--chip-color) 18%, transparent);
  color: var(--chip-color);
  font-size: 12px;
  letter-spacing: 0.02em;
  transition: transform var(--ease-fast), background var(--ease-fast), box-shadow var(--ease-fast), gap var(--ease-fast);
}
.hero-meta .hero-chip:nth-child(1) {
  --chip-color: #39ffb6;
}
.hero-meta .hero-chip:nth-child(2) {
  --chip-color: #ffb347;
}
.hero-meta .hero-chip:nth-child(3) {
  --chip-color: #46e1ff;
}
.hero-chip-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  position: relative;
  color: inherit;
}
.hero-chip-icon::before,
.hero-chip-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.6px solid currentColor;
  opacity: 0.9;
  box-shadow: 0 0 10px color-mix(in srgb, currentColor 50%, transparent);
}
.hero-chip-icon.icon-pulse::after {
  inset: 4px;
  border-radius: 2px;
  transform: rotate(12deg);
  border-width: 1.6px;
}
.hero-chip-icon.icon-fun::before {
  border-radius: 40% 40% 50% 50%;
}
.hero-chip-icon.icon-fun::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  top: 6px;
  border-radius: 0 0 8px 8px;
  border: 1.6px solid currentColor;
  opacity: 0.9;
}
.hero-chip-icon.icon-lock::before {
  border-radius: 3px;
}
.hero-chip-icon.icon-lock::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 6px;
  border: 1.6px solid currentColor;
  border-top: none;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  border-radius: 0 0 2px 2px;
}
.hero-chip:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--chip-color) 26%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--chip-color) 40%, transparent), 0 0 28px color-mix(in srgb, var(--chip-color) 28%, transparent);
  gap: 7px;
}
.hero-chip:hover .hero-chip-icon {
  filter: drop-shadow(0 0 8px color-mix(in srgb, currentColor 70%, transparent));
  transform: translateY(-1px);
}
.hero-chip-text {
  display: inline-block;
}
@media (max-width: 768px) {
  .hero-meta { margin: 10px 0 18px; }
  .hero-chip { font-size: 11px; }
}


.hero-scan {
  position: relative;
  height: 18px;
  margin: 12px 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0.7;
}
.hero-scan-line {
  position: absolute;
  width: 100%;
  max-width: 600px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(57,255,182,0.05),
    rgba(57,255,182,0.6),
    rgba(72,149,255,0.5),
    rgba(57,255,182,0.1)
  );
  transform-origin: left center;
  opacity: 0.4;
  animation: hero-scan-loop 4.2s ease-in-out infinite;
}
@keyframes hero-scan-loop {
  0% { transform: scaleX(0); opacity: 0; }
  10% { opacity: 0.8; }
  40% { transform: scaleX(1); opacity: 0.6; }
  60% { opacity: 0.4; }
  80% { transform: scaleX(1); opacity: 0.5; }
  100% { transform: scaleX(0); opacity: 0; }
}
50% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0.5; transform: translateY(-2px); }
}
@keyframes hudShimmer { 0% { opacity: 0.25; } 100% { opacity: 0.5; } }