/* ToolJee Share — stage visuals + page motion */
:root {
  --tj-share-ink: #0f172a;
  --tj-share-muted: #64748b;
  --tj-share-teal: #0f766e;
  --tj-share-teal-bright: #14b8a6;
  --tj-share-indigo: #4f46e5;
  --tj-share-panel: #ffffff;
}

.tj-share-page {
  position: relative;
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(900px 420px at 10% -5%, rgba(20, 184, 166, 0.14), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(79, 70, 229, 0.12), transparent 50%),
    #f4f7f8;
  background-size: 100% 100%, 100% 100%, auto;
  color: var(--tj-share-ink);
  min-height: 100vh;
  animation: tjPageIn 0.55s ease both;
  overflow-x: hidden;
}

/* Full-page light transfer mesh (fills blank space) */
.tj-share-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.tj-share-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.tj-share-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: tjBgGlow 8s ease-in-out infinite;
}

.tj-share-bg-glow.g1 {
  width: 420px;
  height: 420px;
  left: -8%;
  top: 12%;
  background: rgba(20, 184, 166, 0.22);
}

.tj-share-bg-glow.g2 {
  width: 380px;
  height: 380px;
  right: -6%;
  top: 38%;
  background: rgba(99, 102, 241, 0.18);
  animation-delay: -3s;
}

.tj-share-bg-glow.g3 {
  width: 300px;
  height: 300px;
  left: 35%;
  bottom: 8%;
  background: rgba(45, 212, 191, 0.14);
  animation-delay: -5s;
}

@keyframes tjBgGlow {
  0%,
  100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.15) translate(12px, -18px);
    opacity: 0.55;
  }
}

.tj-share-bg-optics {
  position: absolute;
  inset: 0;
  opacity: 0.55;
}

.tj-share-bg-optics svg {
  position: absolute;
  width: 140%;
  left: -20%;
  height: 180px;
}

.tj-share-bg-optics .ow1 {
  top: 18%;
  animation: tjOpticDrift 14s ease-in-out infinite;
}
.tj-share-bg-optics .ow2 {
  top: 48%;
  animation: tjOpticDrift 18s ease-in-out infinite reverse;
  opacity: 0.7;
}
.tj-share-bg-optics .ow3 {
  bottom: 12%;
  top: auto;
  animation: tjOpticDrift 16s ease-in-out infinite;
  opacity: 0.55;
}

@keyframes tjOpticDrift {
  0%,
  100% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(4%) translateY(-10px);
  }
}

.tj-share-page > #app-nav,
.tj-share-page > main,
.tj-share-page > #app-footer {
  position: relative;
  z-index: 1;
}

.tj-share-quota {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  max-width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #e2e8f0;
  color: #475569;
  line-height: 1.4;
}

.tj-share-mine-section {
  margin-top: 0.25rem;
}

.tj-share-mine {
  backdrop-filter: blur(6px);
}

.tj-share-seo .max-w-3xl {
  max-width: 42rem;
}

.tj-share-seo h3 {
  margin-top: 0.25rem;
}

@keyframes tjPageIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

.tj-share-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.1fr);
  gap: 0;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  min-height: 560px;
  animation: tjShellIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes tjShellIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .tj-share-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .tj-share-stage,
  [data-tj-share-stage] {
    min-height: 280px !important;
    order: -1;
  }
}

.tj-share-panel {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  animation: tjPanelIn 0.65s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
  min-width: 0;
}

@keyframes tjPanelIn {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tj-share-eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tj-share-teal);
  animation: tjFadeUp 0.5s 0.15s both;
}

.tj-share-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  word-break: break-word;
  animation: tjFadeUp 0.55s 0.2s both;
}

.tj-share-sub {
  margin: 0;
  color: var(--tj-share-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  animation: tjFadeUp 0.55s 0.26s both;
}

@keyframes tjFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tj-share-facts {
  margin: 0.25rem 0 0;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  animation: tjFadeUp 0.5s 0.15s both;
}

.tj-share-facts li {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(5.5rem, 34%) minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  font-size: 0.86rem;
  border-bottom: 1px solid #f1f5f9;
  animation: tjRowIn 0.4s both;
}

.tj-share-facts li:nth-child(1) {
  animation-delay: 0.05s;
}
.tj-share-facts li:nth-child(2) {
  animation-delay: 0.1s;
}
.tj-share-facts li:nth-child(3) {
  animation-delay: 0.15s;
}
.tj-share-facts li:nth-child(4) {
  animation-delay: 0.2s;
}
.tj-share-facts li:nth-child(5) {
  animation-delay: 0.25s;
}
.tj-share-facts li:nth-child(6) {
  animation-delay: 0.3s;
}
.tj-share-facts li:nth-child(7) {
  animation-delay: 0.35s;
}

@keyframes tjRowIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tj-share-facts li:last-child {
  border-bottom: 0;
}

.tj-share-facts span {
  color: var(--tj-share-muted);
  flex-shrink: 0;
}

.tj-share-facts strong {
  font-weight: 650;
  text-align: right;
  color: var(--tj-share-ink);
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

.tj-share-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: auto;
  padding: 0.95rem 1.15rem;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 45%, #4f46e5 160%);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.28);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
  animation: tjFadeUp 0.55s 0.28s both;
  box-sizing: border-box;
  line-height: 1.25;
  min-height: 3.1rem;
}

.tj-share-btn.tj-share-btn--inline {
  width: auto;
  min-width: 10.5rem;
  margin: 0 auto;
  margin-top: 0;
  padding: 0.65rem 1.15rem;
  min-height: 2.6rem;
}

.tj-share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  width: 100%;
  align-items: stretch;
  margin-top: 1rem;
  padding-top: 0.15rem;
}

.tj-share-card .tj-share-facts {
  margin-bottom: 0;
}

.tj-share-card .tj-share-actions {
  margin-top: 1.15rem;
}

@media (max-width: 420px) {
  .tj-share-actions {
    grid-template-columns: 1fr;
  }
}

.tj-share-actions .tj-share-btn,
.tj-share-actions .tj-share-btn-secondary {
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  min-height: 3rem;
  height: 3rem;
  padding: 0 0.85rem;
  animation: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

.tj-share-actions .tj-share-btn .material-symbols-outlined,
.tj-share-actions .tj-share-btn-secondary .material-symbols-outlined {
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
}

.tj-share-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  box-sizing: border-box;
  line-height: 1.2;
  min-height: 3rem;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.tj-share-btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.tj-share-btn-secondary:active {
  transform: none;
}

.tj-share-card {
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.tj-share-card.is-success {
  border-color: #99f6e4;
}

.tj-share-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.28) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: tjShimmer 2.8s ease-in-out infinite;
}

@keyframes tjShimmer {
  0%,
  40% {
    transform: translateX(-120%);
  }
  70%,
  100% {
    transform: translateX(120%);
  }
}

.tj-share-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.35);
}

.tj-share-btn:active {
  transform: translateY(0);
}

.tj-share-btn[hidden],
.tj-share-btn.hidden {
  display: none !important;
}

.tj-share-err {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #be123c;
  font-size: 0.86rem;
  line-height: 1.45;
  animation: tjFadeUp 0.35s both;
}

.tj-share-err[hidden],
.tj-share-err.hidden {
  display: none !important;
}

/* —— Animated stage —— */
.tj-share-stage,
[data-tj-share-stage] {
  position: relative;
  min-height: 560px;
  background: radial-gradient(800px 500px at 70% 20%, rgba(79, 70, 229, 0.4), transparent 55%),
    radial-gradient(600px 420px at 20% 80%, rgba(20, 184, 166, 0.32), transparent 50%),
    linear-gradient(160deg, #0b1220 0%, #134e4a 48%, #1e1b4b 100%);
  overflow: hidden;
  isolation: isolate;
  animation: tjStageIn 0.75s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes tjStageIn {
  from {
    opacity: 0;
    filter: saturate(0.6);
  }
  to {
    opacity: 1;
    filter: none;
  }
}

.tj-share-stage-label {
  position: absolute;
  z-index: 4;
  left: 1.25rem;
  bottom: 1.25rem;
  right: 1.25rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  line-height: 1.45;
  pointer-events: none;
  animation: tjFadeUp 0.6s 0.4s both;
}

.tj-share-stage-label strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

/* Scanning beam */
.tj-scan {
  position: absolute;
  z-index: 2;
  left: -20%;
  width: 40%;
  top: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(94, 234, 212, 0.08),
    rgba(165, 180, 252, 0.14),
    rgba(94, 234, 212, 0.08),
    transparent
  );
  animation: tjScan 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes tjScan {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(320%);
  }
}

.tj-waves {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.65;
  pointer-events: none;
}

.tj-waves svg {
  position: absolute;
  left: -15%;
  width: 130%;
  height: 160px;
}

.tj-waves .w1 {
  bottom: 6%;
  animation: tjWave 7s ease-in-out infinite;
}
.tj-waves .w2 {
  bottom: 16%;
  opacity: 0.75;
  animation: tjWave 9s ease-in-out infinite reverse;
}
.tj-waves .w3 {
  bottom: 26%;
  opacity: 0.5;
  animation: tjWave 11s ease-in-out infinite;
}

@keyframes tjWave {
  0%,
  100% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(-5%) translateY(-6px);
  }
}

.tj-net {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.tj-net canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.tj-orbit {
  position: absolute;
  z-index: 3;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  animation: tjOrbitSpin 16s linear infinite;
  box-shadow: 0 0 40px rgba(94, 234, 212, 0.12);
}

.tj-orbit::before,
.tj-orbit::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 18px #2dd4bf, 0 0 28px rgba(45, 212, 191, 0.5);
}

.tj-orbit::before {
  top: -6px;
  left: 50%;
  margin-left: -5px;
}

.tj-orbit::after {
  bottom: 22px;
  right: 14px;
  width: 8px;
  height: 8px;
  background: #a5b4fc;
  box-shadow: 0 0 16px #818cf8;
  animation: tjPulse 2s ease-in-out infinite;
}

.tj-orbit-inner {
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  animation: tjOrbitSpin 9s linear infinite reverse;
}

.tj-core {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 42%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, rgba(15, 118, 110, 0.98), rgba(79, 70, 229, 0.9));
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.06), 0 0 40px rgba(45, 212, 191, 0.35),
    0 16px 40px rgba(0, 0, 0, 0.35);
  animation: tjFloat 4s ease-in-out infinite, tjCoreGlow 3s ease-in-out infinite;
}

@keyframes tjOrbitSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes tjFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes tjCoreGlow {
  0%,
  100% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.06), 0 0 36px rgba(45, 212, 191, 0.3),
      0 16px 40px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.08), 0 0 56px rgba(129, 140, 248, 0.45),
      0 16px 40px rgba(0, 0, 0, 0.35);
  }
}

@keyframes tjPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

.tj-spark {
  position: absolute;
  z-index: 3;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px #5eead4, 0 0 22px rgba(165, 180, 252, 0.9);
  animation: tjSpark 2.8s ease-in-out infinite;
}

.tj-spark:nth-child(1) {
  left: 14%;
  top: 18%;
}
.tj-spark:nth-child(2) {
  left: 78%;
  top: 14%;
  animation-delay: 0.5s;
}
.tj-spark:nth-child(3) {
  left: 22%;
  top: 72%;
  animation-delay: 1s;
}
.tj-spark:nth-child(4) {
  left: 84%;
  top: 58%;
  animation-delay: 1.4s;
}
.tj-spark:nth-child(5) {
  left: 48%;
  top: 82%;
  animation-delay: 0.3s;
}
.tj-spark:nth-child(6) {
  left: 62%;
  top: 28%;
  animation-delay: 0.9s;
}
.tj-spark:nth-child(7) {
  left: 8%;
  top: 48%;
  animation-delay: 1.7s;
}

@keyframes tjSpark {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1.55);
  }
}

/* Signal lines (CSS) */
.tj-beam {
  position: absolute;
  z-index: 2;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #5eead4, #a5b4fc, transparent);
  opacity: 0.55;
  filter: blur(0.2px);
  animation: tjBeam 3.2s ease-in-out infinite;
  pointer-events: none;
}

.tj-beam.b1 {
  width: 55%;
  top: 28%;
  left: 10%;
  transform: rotate(-18deg);
}
.tj-beam.b2 {
  width: 48%;
  top: 58%;
  left: 35%;
  transform: rotate(12deg);
  animation-delay: 0.8s;
}
.tj-beam.b3 {
  width: 40%;
  top: 42%;
  left: 5%;
  transform: rotate(28deg);
  animation-delay: 1.4s;
}

@keyframes tjBeam {
  0%,
  100% {
    opacity: 0.15;
    filter: blur(0.5px);
  }
  50% {
    opacity: 0.75;
    filter: blur(0);
  }
}

/* Upload drop zone motion */
.tj-share-drop {
  position: relative;
  border: 2px dashed rgba(15, 118, 110, 0.4);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  padding: 1.5rem 1.25rem 1.35rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  animation: tjFadeUp 0.55s 0.22s both;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

/* Must beat .tj-share-drop { display:flex } — otherwise drop stays visible after pick */
.tj-share-drop.hidden,
#fs-drop.hidden,
#fs-preview.hidden,
#fs-result.hidden,
#fs-status.hidden,
#fs-progress.hidden,
#fs-quota.hidden {
  display: none !important;
}

.tj-share-drop::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, #0f766e, #4f46e5, #14b8a6, #0f766e) border-box;
  background-size: 100% 100%, 300% 300%;
  opacity: 0;
  transition: opacity 0.25s;
  animation: tjBorderFlow 4s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes tjBorderFlow {
  to {
    background-position: 0 0, 300% 0;
  }
}

.tj-share-drop:hover,
.tj-share-drop.is-over {
  border-color: #0f766e;
  background: rgba(15, 118, 110, 0.06);
  transform: scale(1.015);
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.12);
}

.tj-share-drop:hover::before,
.tj-share-drop.is-over::before {
  opacity: 1;
}

.tj-share-drop .material-symbols-outlined {
  animation: tjBob 2.4s ease-in-out infinite;
}

@keyframes tjBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.tj-share-bar {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  animation: tjFadeUp 0.3s both;
}

.tj-share-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0f766e, #14b8a6, #4f46e5, #0f766e);
  background-size: 200% 100%;
  transition: width 0.2s;
  animation: tjBarFlow 1.2s linear infinite;
  border-radius: 999px;
}

@keyframes tjBarFlow {
  to {
    background-position: 200% 0;
  }
}

.tj-share-spin {
  animation: tjSpin 0.75s linear infinite;
}

@keyframes tjSpin {
  to {
    transform: rotate(360deg);
  }
}

#fs-preview,
#fs-result {
  animation: tjPopIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes tjPopIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tj-ft-tile {
  position: relative;
  flex-shrink: 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--ft, #0f766e);
  background: color-mix(in srgb, var(--ft, #0f766e) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--ft, #0f766e) 22%, #e2e8f0);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--ft, #0f766e) 12%, transparent);
  animation: tjTileIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes tjTileIn {
  from {
    opacity: 0;
    transform: scale(0.7) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tj-ft-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  min-width: 1.7rem;
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  background: var(--ft, #0f766e);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

.tj-ft-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ft, #0f766e);
  background: color-mix(in srgb, var(--ft, #0f766e) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--ft, #0f766e) 20%, #e2e8f0);
  animation: tjFadeUp 0.4s both;
}

.tj-ft-chip:nth-child(2) {
  animation-delay: 0.06s;
}
.tj-ft-chip:nth-child(3) {
  animation-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* —— Full-page file-drag “launch” mode —— */
.tj-share-page {
  transition: background 0.45s ease, filter 0.45s ease;
}

.tj-share-page.is-launching {
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(59, 130, 246, 0.45), transparent 55%),
    radial-gradient(800px 480px at 90% 30%, rgba(37, 99, 235, 0.4), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(14, 165, 233, 0.35), transparent 55%),
    linear-gradient(165deg, #0c1a3a 0%, #1e3a8a 40%, #0ea5e9 100%) !important;
  color: #e2e8f0;
}

.tj-share-page.is-launching .tj-share-bg {
  opacity: 0.35;
  filter: hue-rotate(40deg) saturate(1.4);
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.tj-share-page.is-launching .tj-share-shell {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(147, 197, 253, 0.45);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35), 0 28px 80px rgba(37, 99, 235, 0.45);
  transform: scale(1.01);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.tj-share-page.is-launching .tj-share-panel {
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.55) 0%, rgba(15, 23, 42, 0.7) 100%);
  color: #f8fafc;
}

.tj-share-page.is-launching .tj-share-eyebrow {
  color: #93c5fd;
}

.tj-share-page.is-launching .tj-share-title,
.tj-share-page.is-launching h1,
.tj-share-page.is-launching h2,
.tj-share-page.is-launching .text-slate-900,
.tj-share-page.is-launching .text-text-main {
  color: #f8fafc !important;
}

.tj-share-page.is-launching .tj-share-sub,
.tj-share-page.is-launching .text-text-muted,
.tj-share-page.is-launching .text-slate-600,
.tj-share-page.is-launching .text-slate-400 {
  color: #bfdbfe !important;
}

.tj-share-page.is-launching .tj-share-drop {
  border-color: rgba(147, 197, 253, 0.7);
  background: rgba(37, 99, 235, 0.25);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.35), inset 0 0 30px rgba(14, 165, 233, 0.15);
  animation: tjDropPulse 1.1s ease-in-out infinite;
}

.tj-share-page.is-launching .tj-share-drop .material-symbols-outlined {
  color: #93c5fd !important;
  animation: tjRocketBob 0.7s ease-in-out infinite;
}

.tj-share-page.is-launching .tj-share-stage {
  filter: hue-rotate(-20deg) saturate(1.3) brightness(1.05);
}

.tj-share-page.is-launching #fs-mine,
.tj-share-page.is-launching .tj-share-facts {
  background: rgba(15, 23, 42, 0.55) !important;
  border-color: rgba(147, 197, 253, 0.35) !important;
  color: #e2e8f0;
}

@keyframes tjDropPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

@keyframes tjRocketBob {
  0%,
  100% {
    transform: translateY(0) rotate(-12deg);
  }
  50% {
    transform: translateY(-8px) rotate(-12deg);
  }
}

.tj-launch-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.tj-share-page.is-launching .tj-launch-layer {
  opacity: 1;
  visibility: visible;
}

.tj-launch-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--lx, 50%) var(--ly, 40%), rgba(56, 189, 248, 0.35), transparent 28%),
    linear-gradient(180deg, rgba(30, 64, 175, 0.25), rgba(14, 165, 233, 0.12));
  animation: tjWashPulse 1.6s ease-in-out infinite;
}

@keyframes tjWashPulse {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

.tj-launch-streaks {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.tj-launch-streaks span {
  position: absolute;
  width: 2px;
  height: 70px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, #93c5fd, #38bdf8, #fff);
  opacity: 0.55;
  animation: tjStreak 1.1s linear infinite;
}

.tj-launch-streaks span:nth-child(1) {
  left: 12%;
  animation-duration: 0.9s;
}
.tj-launch-streaks span:nth-child(2) {
  left: 28%;
  animation-duration: 1.2s;
  animation-delay: 0.2s;
}
.tj-launch-streaks span:nth-child(3) {
  left: 45%;
  animation-duration: 0.85s;
  animation-delay: 0.1s;
}
.tj-launch-streaks span:nth-child(4) {
  left: 62%;
  animation-duration: 1.05s;
  animation-delay: 0.35s;
}
.tj-launch-streaks span:nth-child(5) {
  left: 78%;
  animation-duration: 0.95s;
  animation-delay: 0.15s;
}
.tj-launch-streaks span:nth-child(6) {
  left: 90%;
  animation-duration: 1.15s;
  animation-delay: 0.4s;
}

@keyframes tjStreak {
  0% {
    transform: translateY(-120vh) scaleY(0.4);
    opacity: 0;
  }
  20% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(120vh) scaleY(1.4);
    opacity: 0;
  }
}

.tj-launch-banner {
  position: absolute;
  left: 50%;
  top: 1.25rem;
  transform: translateX(-50%);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(147, 197, 253, 0.5);
  color: #eff6ff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4);
  animation: tjFadeUp 0.35s ease both;
  backdrop-filter: blur(10px);
}

.tj-launch-fire {
  position: fixed;
  z-index: 45;
  width: 72px;
  height: 96px;
  margin-left: -36px;
  margin-top: -80px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-9999px, -9999px, 0);
  transition: opacity 0.2s ease, visibility 0.2s ease;
  will-change: transform;
}

.tj-share-page.is-launching .tj-launch-fire {
  opacity: 1;
  visibility: visible;
}

.tj-launch-fire .tj-flame {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 28px;
  height: 48px;
  margin-left: -14px;
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle at 50% 80%, #fff 0%, #fde68a 22%, #f97316 55%, #ef4444 78%, transparent 100%);
  filter: blur(0.4px);
  animation: tjFlame 0.28s ease-in-out infinite alternate;
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.85), 0 0 48px rgba(239, 68, 68, 0.45);
}

.tj-launch-fire .tj-flame::before,
.tj-launch-fire .tj-flame::after {
  content: "";
  position: absolute;
  bottom: 0;
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle at 50% 75%, #fff8 0%, #fb923c 50%, transparent 100%);
}

.tj-launch-fire .tj-flame::before {
  left: -10px;
  width: 18px;
  height: 34px;
  animation: tjFlame 0.35s ease-in-out infinite alternate-reverse;
}

.tj-launch-fire .tj-flame::after {
  right: -10px;
  width: 16px;
  height: 30px;
  animation: tjFlame 0.22s ease-in-out infinite alternate;
}

@keyframes tjFlame {
  from {
    transform: scaleY(0.85) translateY(2px);
    filter: brightness(0.95);
  }
  to {
    transform: scaleY(1.15) translateY(-4px);
    filter: brightness(1.2);
  }
}

.tj-launch-fire .tj-rocket {
  position: absolute;
  left: 50%;
  top: 0;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8 55%, #0ea5e9);
  box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.25), 0 12px 28px rgba(37, 99, 235, 0.55);
  animation: tjRocketShake 0.35s ease-in-out infinite;
}

.tj-launch-fire .tj-rocket .material-symbols-outlined {
  font-size: 28px;
  transform: rotate(-35deg);
}

@keyframes tjRocketShake {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(3px) rotate(-10deg);
  }
}

.tj-launch-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tj-launch-sparks i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fde68a;
  box-shadow: 0 0 8px #f97316;
  animation: tjSparkFly 0.55s ease-out forwards;
}

@keyframes tjSparkFly {
  to {
    opacity: 0;
    transform: translate(var(--sx), var(--sy)) scale(0.2);
  }
}

.tj-share-page.is-launching-out {
  transition: background 0.55s ease, filter 0.55s ease;
}

.tj-share-shell {
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.tj-share-bg {
  transition: opacity 0.4s ease, filter 0.4s ease;
}
