/* =====================================================================
   AI Tools page: enhanced layer (glass, motion, Instagram reels).
   Linked after the page's inline styles in ai-tools-source.html and
   scoped to body.ai-tools-page, so no other page is affected.
   ===================================================================== */

body.ai-tools-page {
  --xt-bg: #eef0f2;
  --xt-glass: linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .46));
  --xt-glass-border: rgba(255, 255, 255, .95);
  --xt-shadow: 0 16px 44px rgba(18, 22, 30, .07);
  --xt-shadow-lift: 0 30px 70px rgba(18, 22, 30, .16);
  --xt-ig: linear-gradient(90deg, #e2231a, #ff3d7f 55%, #ff9a3c);
  background: var(--xt-bg);
}

/* Frosted header, same treatment as the homepage. The blur sits on a
   pseudo-element so the fixed mobile menu is not trapped (see site.css). */
body.ai-tools-page .site-header { background: transparent; }
body.ai-tools-page .site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(238, 240, 242, .7);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, .75);
}

/* Rounded controls throughout */
body.ai-tools-page .btn,
body.ai-tools-page .chip,
body.ai-tools-page .mini-btn,
body.ai-tools-page .tag { border-radius: 999px; }

/* ------------------------------------------------------ Scroll progress */
.xt-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 400;
  height: 3px;
  background: var(--xt-ig);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}
html[dir="rtl"] .xt-progress { transform-origin: 100% 50%; }

/* ----------------------------------------------------------------- Hero */
body.ai-tools-page .hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-top: clamp(2rem, 5vw, 4rem);
}
body.ai-tools-page .hero::before,
body.ai-tools-page .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
}
body.ai-tools-page .hero::before {
  width: min(64vw, 860px);
  inset-inline-end: -14%;
  top: -20%;
  background: radial-gradient(circle, rgba(226, 35, 26, .22), rgba(226, 35, 26, 0) 66%);
}
body.ai-tools-page .hero::after {
  width: min(48vw, 620px);
  inset-inline-start: -16%;
  top: 30%;
  background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 64%);
}
body.ai-tools-page .hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  text-align: start;
}
body.ai-tools-page .hero__title {
  max-width: 12ch;
  font-size: clamp(2.6rem, 5.6vw, 5.2rem);
}
body.ai-tools-page.lang-ar .hero__title { font-size: clamp(2.3rem, 4.8vw, 4.4rem); }
body.ai-tools-page .label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
body.ai-tools-page .label::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(226, 35, 26, .5);
  animation: xtPulse 2.2s ease-out infinite;
}

/* Word-by-word title entrance (words are wrapped by the script) */
.xt-w {
  display: inline-block;
  opacity: 0;
  transform: translateY(.45em) rotate(2deg);
  filter: blur(6px);
  animation: xtWord .8s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: calc(var(--i) * 55ms + 120ms);
}

/* ---------------------------------------------------------- Tool orbit */
.tool-orbit {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  margin-inline: auto;
  perspective: 1100px;
  direction: ltr;
}
.tool-orbit__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(-24deg);
}
.tool-orbit__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  aspect-ratio: 1;
  border: 1px solid rgba(13, 13, 13, .12);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(90deg);
}
.tool-orbit__ring:nth-child(1) { width: 50%; border-color: rgba(226, 35, 26, .28); }
.tool-orbit__ring:nth-child(2) { width: 74%; border-style: dashed; }
.tool-orbit__ring:nth-child(3) { width: 98%; }

.orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  transform-style: preserve-3d;
  animation: xtSpin 16s linear infinite;
}
.orbit-core i,
.orbit-core b i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .95);
  background: linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .22));
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .6);
}
.orbit-core > i:nth-child(1) { transform: translateZ(42px); }
.orbit-core > i:nth-child(2) { transform: rotateY(90deg) translateZ(42px); }
.orbit-core > i:nth-child(3) { transform: rotateY(180deg) translateZ(42px); }
.orbit-core > i:nth-child(4) { transform: rotateY(-90deg) translateZ(42px); }
.orbit-core > i:nth-child(5) { transform: rotateX(90deg) translateZ(42px); }
.orbit-core > i:nth-child(6) { transform: rotateX(-90deg) translateZ(42px); }
.orbit-core b {
  position: absolute;
  inset: 27px;
  transform-style: preserve-3d;
  animation: xtSpinCore 9s linear infinite;
}
.orbit-core b i {
  border-color: rgba(255, 140, 130, .95);
  background: rgba(226, 35, 26, .6);
  box-shadow: none;
}
.orbit-core b i:nth-child(1) { transform: translateZ(15px); }
.orbit-core b i:nth-child(2) { transform: rotateY(90deg) translateZ(15px); }
.orbit-core b i:nth-child(3) { transform: rotateY(180deg) translateZ(15px); }
.orbit-core b i:nth-child(4) { transform: rotateY(-90deg) translateZ(15px); }
.orbit-core b i:nth-child(5) { transform: rotateX(90deg) translateZ(15px); }
.orbit-core b i:nth-child(6) { transform: rotateX(-90deg) translateZ(15px); }

.orbit-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  padding: 0;
  border: 0;
  border-radius: 17px;
  background: var(--xt-glass);
  box-shadow: inset 0 0 0 1px var(--xt-glass-border), 0 12px 28px rgba(18, 22, 30, .12);
  cursor: pointer;
  will-change: transform, opacity;
}
.orbit-chip img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.orbit-chip__name {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: .32rem .6rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.orbit-chip:hover .orbit-chip__name { opacity: 1; transform: translate(-50%, 0); }

/* One main action, two small secondary ones */
body.ai-tools-page .hero__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.1rem;
}
body.ai-tools-page .xt-mini-action {
  flex: 0 0 auto;
  gap: .45rem;
  min-height: 48px;
  padding: .6rem 1rem;
  border-color: rgba(13, 13, 13, .16);
  background: rgba(255, 255, 255, .7);
  font-size: .9rem;
}
body.ai-tools-page .hero__facts {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}
body.ai-tools-page .hero__facts span[aria-hidden] { margin-inline: .35rem; opacity: .5; }

/* Phone-save card: hidden until "Save" is tapped */
body.ai-tools-page .phone-save[hidden] { display: none; }
body.ai-tools-page .phone-save .xt-mini-action { margin-top: .9rem; min-height: 40px; }
body.ai-tools-page .phone-save {
  width: min(var(--maxw), calc(100% - 32px));
  margin: 2rem auto 0;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(226, 35, 26, .07), rgba(255, 255, 255, 0) 45%), var(--xt-glass);
  box-shadow: inset 0 0 0 1px var(--xt-glass-border), var(--xt-shadow);
}
body.ai-tools-page .phone-save__inner { width: auto; padding: 1.1rem 1.4rem; }
body.ai-tools-page .phone-save__step { border: 0; border-radius: 16px; background: rgba(255, 255, 255, .7); }

/* -------------------------------------------------------------- Marquee */
.xt-marquee {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: .4rem 0;
  overflow: hidden;
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.xt-marquee__row {
  display: flex;
  gap: .7rem;
  width: max-content;
  animation: xtMarquee 80s linear infinite;
}
.xt-marquee__row + .xt-marquee__row { margin-top: .7rem; animation-direction: reverse; animation-duration: 95s; }
.xt-marquee:hover .xt-marquee__row { animation-play-state: paused; }
.xt-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .95rem .45rem .5rem;
  border-radius: 999px;
  background: var(--xt-glass);
  box-shadow: inset 0 0 0 1px var(--xt-glass-border), 0 6px 18px rgba(18, 22, 30, .05);
  color: var(--ink);
  font-size: .86rem;
  font-weight: 800;
  white-space: nowrap;
}
.xt-pill img { width: 24px; height: 24px; object-fit: contain; border-radius: 7px; background: #fff; padding: 2px; }

/* ------------------------------------------------------ Instagram teaser */
.xt-insta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: #0c0c0e;
  color: #fff;
}
.xt-insta::before,
.xt-insta::after {
  content: "";
  position: absolute;
  z-index: -1;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
}
.xt-insta::before { width: 720px; inset-inline-end: -12%; top: -50%; background: radial-gradient(circle, rgba(255, 61, 127, .26), transparent 65%); animation: xtGlow 9s ease-in-out infinite alternate; }
.xt-insta::after { width: 640px; inset-inline-start: -14%; bottom: -60%; background: radial-gradient(circle, rgba(255, 154, 60, .22), transparent 65%); animation: xtGlow 11s ease-in-out infinite alternate-reverse; }
.xt-insta__inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.xt-profile { display: inline-flex; align-items: center; gap: .9rem; color: #fff; }
.xt-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  isolation: isolate;
}
.xt-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(#ff9a3c, #ff3d7f, #e2231a, #b026ff, #ff9a3c);
  animation: xtRing 5s linear infinite;
}
.xt-ring::after {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -2;
  border-radius: 50%;
  border: 2px solid rgba(255, 61, 127, .5);
  animation: xtRipple 2.6s ease-out infinite;
}
.xt-ring img { width: 68px; height: 68px; border: 3px solid #0c0c0e; border-radius: 50%; object-fit: cover; }
.xt-profile__text strong { display: block; font-size: 1.15rem; font-weight: 900; letter-spacing: -.01em; }
.xt-profile__text small { color: rgba(255, 255, 255, .6); font-size: .85rem; font-weight: 700; }
.xt-insta__title { margin-top: 1.6rem; color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.xt-insta__copy { margin-top: 1rem; max-width: 42ch; color: rgba(255, 255, 255, .68); font-size: 1.05rem; }
.xt-follow {
  margin-top: 1.8rem;
  min-height: 56px;
  padding: .9rem 1.6rem;
  border: 0 !important;
  background: var(--xt-ig) !important;
  color: #fff !important;
  font-size: 1.02rem;
  box-shadow: 0 14px 34px rgba(255, 61, 127, .3);
}
.xt-follow:hover, .xt-follow:focus-visible { filter: brightness(1.08); box-shadow: 0 18px 44px rgba(255, 61, 127, .42); }
.xt-insta__perks {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}
.xt-insta__perks li {
  padding: .32rem .75rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
  font-weight: 800;
}

.xt-insta__label {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .9rem;
  color: rgba(255, 255, 255, .62);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.xt-live { width: 9px; height: 9px; border-radius: 50%; background: #ff3d7f; animation: xtPulse 2s ease-out infinite; }
.xt-hooks { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.xt-hook {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.1rem;
  overflow: hidden;
  isolation: isolate;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  color: #fff;
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), background .3s ease, box-shadow .3s ease;
}
.xt-hook::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--xt-ig);
  opacity: 0;
  transition: opacity .3s ease;
}
.xt-hook:hover,
.xt-hook:focus-visible {
  outline: none;
  transform: translateX(6px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 16px 40px rgba(255, 61, 127, .22);
}
html[dir="rtl"] .xt-hook:hover,
html[dir="rtl"] .xt-hook:focus-visible { transform: translateX(-6px); }
.xt-hook:hover::before, .xt-hook:focus-visible::before { opacity: .16; }
.xt-hook--hot { background: rgba(255, 61, 127, .1); box-shadow: inset 0 0 0 1px rgba(255, 61, 127, .45); }
.xt-hook__n {
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(255, 255, 255, .45);
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
}
.xt-hook__body { display: grid; gap: .25rem; min-width: 0; }
.xt-hook__tag {
  justify-self: start;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: .68rem;
  font-weight: 900;
}
.xt-hook--hot .xt-hook__tag { background: var(--xt-ig); }
.xt-hook__title { font-size: 1.08rem; font-weight: 800; line-height: 1.4; }
.xt-hook__title .ar { font-family: var(--arabic); line-height: 1.6; }
.xt-hook__sub { justify-self: start; color: rgba(255, 255, 255, .55); font-family: var(--arabic); font-size: .8rem; font-weight: 700; }
.xt-hook__go {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: rgba(255, 255, 255, .7);
  font-size: .8rem;
  font-weight: 900;
  white-space: nowrap;
  transition: color .25s ease;
}
.xt-hook__arrow { transition: transform .3s ease; }
html[dir="rtl"] .xt-hook__arrow { transform: scaleX(-1); }
.xt-hook:hover .xt-hook__go { color: #fff; }
.xt-hook:hover .xt-hook__arrow { transform: translate(2px, -2px); }
html[dir="rtl"] .xt-hook:hover .xt-hook__arrow { transform: scaleX(-1) translate(2px, -2px); }
.xt-insta__all {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, .75);
  font-size: .9rem;
  font-weight: 800;
  transition: color .25s ease;
}
.xt-insta__all:hover, .xt-insta__all:focus-visible { color: #fff; }
html[dir="rtl"] .xt-insta__all svg { transform: scaleX(-1); }

/* "Watch my reel" badge on matching tool cards */
.xt-reel-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .85rem;
  padding: .32rem .75rem .32rem .34rem;
  border: 0;
  border-radius: 999px;
  background: var(--xt-ig);
  color: #fff;
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(226, 35, 26, .25);
  transition: transform .25s ease, box-shadow .25s ease;
}
.xt-reel-badge:hover, .xt-reel-badge:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(226, 35, 26, .35); outline: none; }
.xt-reel-badge__icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.xt-reel-badge__icon svg { width: 11px; height: 11px; margin-inline-start: 1px; }

/* ------------------------------------------------ Search & filter panel */
body.ai-tools-page .tools-panel {
  position: sticky;
  top: 65px;
  z-index: 60;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border: 0;
  background: transparent;
}
body.ai-tools-page .tools-panel__inner {
  padding: .9rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--xt-glass-border), var(--xt-shadow);
}
.xt-search { position: relative; min-width: 0; }
.xt-search__icon {
  position: absolute;
  inset-inline-start: 1rem;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  color: #8a8a8a;
  pointer-events: none;
}
body.ai-tools-page .search {
  min-height: 54px;
  padding-inline: 2.9rem 3rem;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(13, 13, 13, .1);
  transition: box-shadow .25s ease;
}
body.ai-tools-page .search:focus { outline: none; box-shadow: inset 0 0 0 2px var(--red), 0 0 0 5px rgba(226, 35, 26, .1); }
.xt-search__kbd {
  position: absolute;
  inset-inline-end: .9rem;
  top: 50%;
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  margin-top: -13px;
  border: 1px solid rgba(13, 13, 13, .14);
  border-radius: 7px;
  color: #777;
  font-size: .8rem;
  font-weight: 800;
  pointer-events: none;
}
.xt-search:focus-within .xt-search__kbd { opacity: 0; }
@media (hover: none) { .xt-search__kbd { display: none; } }
body.ai-tools-page .filters { position: relative; }
body.ai-tools-page .chip { position: relative; z-index: 1; border-color: rgba(13, 13, 13, .1); }
body.ai-tools-page .chip.active { background: transparent; border-color: transparent; box-shadow: none; transform: none; }
.xt-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 8px 22px rgba(226, 35, 26, .28);
  transition: transform .45s cubic-bezier(.3, 1.3, .5, 1), width .45s cubic-bezier(.3, 1.3, .5, 1);
  pointer-events: none;
}
.xt-count {
  grid-column: 1 / -1;
  margin: 0 .35rem -.1rem;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
}

/* ---------------------------------------------------- Sections & cards */
body.ai-tools-page .section { border-top: 0; }
body.ai-tools-page .section-head .num {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(13, 13, 13, .2);
  font-size: clamp(2.6rem, 6vw, 5rem);
}
body.ai-tools-page .tool-grid { gap: 14px; border-top: 0; }
body.ai-tools-page .tool-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 280px;
  padding: 1.35rem 1.25rem 1.2rem;
  border: 0;
  border-radius: 22px;
  background: var(--xt-glass);
  box-shadow: inset 0 0 0 1px var(--xt-glass-border), var(--xt-shadow);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s ease, opacity .6s ease;
}
body.ai-tools-page .tool-card.reveal:not(.is-visible) { opacity: 0; transform: translateY(26px) scale(.97); }
body.ai-tools-page .tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(226, 35, 26, .13), transparent 45%);
  transition: opacity .3s ease;
}
body.ai-tools-page .tool-card:hover { --lift: -4px; background: var(--xt-glass); box-shadow: inset 0 0 0 1px rgba(226, 35, 26, .3), var(--xt-shadow-lift); }
body.ai-tools-page .tool-card:hover::before { opacity: 1; }
body.ai-tools-page .logo-wrap {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 15px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(13, 13, 13, .08), 0 6px 16px rgba(13, 13, 13, .06);
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1);
}
body.ai-tools-page .logo-wrap img { width: 36px; height: 36px; }
body.ai-tools-page .tool-card:hover .logo-wrap { transform: translateY(-3px) rotate(-6deg) scale(1.07); }

/* Recommended tools: a highlighted band at the top of the catalogue */
body.ai-tools-page .category--picks {
  position: relative;
  isolation: isolate;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
body.ai-tools-page .category--picks::before {
  content: "";
  position: absolute;
  inset: 0 max(0px, calc((100% - var(--maxw)) / 2 - 24px));
  z-index: -1;
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(226, 35, 26, .08), rgba(255, 255, 255, .5) 45%, rgba(255, 255, 255, .2));
  box-shadow: inset 0 0 0 1px rgba(226, 35, 26, .14);
}
body.ai-tools-page .category--picks .pinned-badge {
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
}
body.ai-tools-page .category--picks .tool-card { box-shadow: inset 0 3px 0 var(--red), inset 0 0 0 1px var(--xt-glass-border), var(--xt-shadow); }
body.ai-tools-page .pick-badge {
  margin-inline-start: auto;
  margin-inline-end: .6rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: rgba(226, 35, 26, .09);
  color: var(--red);
  font-size: .68rem;
  font-weight: 900;
  white-space: nowrap;
}
body.ai-tools-page .tool-top { align-items: center; }
body.ai-tools-page .tag { border: 0; background: rgba(13, 13, 13, .05); }
body.ai-tools-page .tool-card.xt-pop { animation: xtPop .45s cubic-bezier(.2, .9, .3, 1.2) both; }
body.ai-tools-page .tool-card.xt-flash { animation: xtFlash 1.6s ease-out; }

/* Notes block */
body.ai-tools-page .note-box {
  padding: 1.4rem;
  border: 0;
  border-radius: 22px;
  background: var(--xt-glass);
  box-shadow: inset 0 0 0 1px var(--xt-glass-border), var(--xt-shadow);
}

/* ------------------------------------------------------------ Keyframes */
@keyframes xtWord { to { opacity: 1; transform: none; filter: none; } }
@keyframes xtPulse { 0% { box-shadow: 0 0 0 0 rgba(226, 35, 26, .5); } 80%, 100% { box-shadow: 0 0 0 10px rgba(226, 35, 26, 0); } }
@keyframes xtSpin { from { transform: rotateX(-18deg) rotateY(0); } to { transform: rotateX(-18deg) rotateY(360deg); } }
@keyframes xtSpinCore { from { transform: rotateX(0) rotateY(0); } to { transform: rotateX(360deg) rotateY(-360deg); } }
@keyframes xtMarquee { to { transform: translateX(-50%); } }
@keyframes xtRing { to { transform: rotate(360deg); } }
@keyframes xtGlow { from { transform: translate(0, 0) scale(1); } to { transform: translate(4%, 6%) scale(1.12); } }
@keyframes xtRipple { from { transform: scale(1); opacity: .7; } to { transform: scale(1.55); opacity: 0; } }
@keyframes xtPop { from { opacity: 0; transform: translateY(14px) scale(.95); } }
@keyframes xtFlash {
  0% { box-shadow: inset 0 0 0 2px var(--red), 0 0 0 0 rgba(226, 35, 26, .45); }
  100% { box-shadow: inset 0 0 0 1px var(--xt-glass-border), 0 0 0 26px rgba(226, 35, 26, 0); }
}

/* ----------------------------------------------------------- Responsive */
@media (max-width: 980px) {
  body.ai-tools-page .hero__grid { grid-template-columns: 1fr; }
  .tool-orbit { max-width: 440px; }
  .xt-insta__inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body.ai-tools-page .hero__grid { text-align: center; }
  body.ai-tools-page .hero__title { margin-inline: auto; }
  body.ai-tools-page .label { justify-content: center; }
  .tool-orbit { max-width: 340px; margin-top: .5rem; }
  .orbit-chip { width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 14px; }
  .orbit-chip img { width: 24px; height: 24px; }
  body.ai-tools-page .tools-panel { position: relative; top: auto; }
  body.ai-tools-page .tool-card { min-height: 0; padding: 1.2rem 1.1rem 1.15rem; }
  /* The old fixed bottom bar is gone, so drop the space reserved for it. */
  body.ai-tools-page { padding-bottom: 0; }
  body.ai-tools-page .toast { bottom: calc(16px + env(safe-area-inset-bottom)); }
  body.ai-tools-page .hero__actions { justify-content: center; }
  body.ai-tools-page .hero__actions .btn--red { flex: 1 1 auto; }
  .xt-insta__intro { text-align: center; }
  .xt-insta__perks { justify-content: center; }
  .xt-follow { width: 100%; }
  .xt-hook { gap: .8rem; padding: .9rem 1rem; }
  .xt-hook__n { font-size: 1.5rem; }
  .xt-hook__go > span { display: none; }
}
/* Small phones: secondary actions become icon buttons; labels stay for screen readers. */
@media (max-width: 560px) {
  body.ai-tools-page .xt-mini-action { width: 48px; padding: 0; }
  body.ai-tools-page .hero__actions .xt-mini-action span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .xt-w { animation: none; opacity: 1; transform: none; filter: none; }
  .xt-marquee__row,
  .orbit-core,
  .orbit-core b,
  .xt-ring::before,
  .xt-ring::after,
  .xt-live,
  .xt-insta::before,
  .xt-insta::after,
  body.ai-tools-page .label::before { animation: none; }
  .xt-marquee { overflow-x: auto; }
  body.ai-tools-page .tool-card,
  .xt-hook { transition: none; transform: none; }
}
