/* tool.css — only tool page styles */

.tool-page-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 93px 16px 56px;
}

.tool-page-head {
  max-width: 860px;
  margin: 0 auto 28px;
  text-align: center;
}

.tool-detail-wrap,
.tool-section-block {
  margin-top: 18px;
}

.tool-loading-card {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  color: var(--text);
}

.tool-loading-card--error {
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.92)),
    linear-gradient(135deg, rgba(109, 93, 252, 0.04), rgba(255, 122, 168, 0.03));
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.tool-loading-msg {
  margin: 0;
  text-align: center;
  color: var(--text);
}

/* Tool page skeleton */
.tool-skeleton {
  display: grid;
  gap: 16px;
  animation: toolSkFadeIn 0.35s ease;
}

@keyframes toolSkFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tool-skeleton-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}

.tool-skeleton-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--text) 12%, transparent);
  border-top-color: var(--primary, #7c5cff);
  animation: toolSkSpin 0.85s linear infinite;
  flex-shrink: 0;
}

.tool-skeleton-status-label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tool-skeleton-detail {
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 80%, rgba(125, 95, 255, 0.14), transparent 34%),
    radial-gradient(circle at 85% 85%, rgba(255, 122, 168, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
  box-shadow: var(--shadow-md);
  padding: 28px;
  display: grid;
  gap: 22px;
}

.tool-skeleton-hero {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 18px;
  align-items: start;
}

.tool-skeleton-hero-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.tool-skeleton-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-skeleton-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.tool-skeleton-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  min-width: 148px;
}

.tool-skeleton-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px 18px;
}

.tool-skeleton-panel {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.55);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.tool-skeleton-gallery {
  display: grid;
  gap: 12px;
}

.tool-skeleton-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tool-skeleton-section {
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 20%, rgba(125, 95, 255, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  display: grid;
  gap: 14px;
}

.tool-skeleton-reco-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tool-skeleton-reco-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.tool-skeleton-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.tool-skeleton-foot-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary, #7c5cff);
  animation: toolSkPulse 1.4s ease-in-out infinite;
}

.tool-sk {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.tool-sk::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--text) 6%, #fff 94%) 45%,
    transparent 100%
  );
  animation: toolSkShimmer 1.35s ease-in-out infinite;
}

.tool-sk-logo {
  width: 92px;
  height: 92px;
  border-radius: 24px;
}

.tool-sk-title {
  height: 36px;
  width: min(72%, 420px);
  border-radius: 12px;
}

.tool-sk-site {
  height: 14px;
  width: min(48%, 280px);
  border-radius: 8px;
}

.tool-sk-pill {
  height: 28px;
  border-radius: 999px;
}

.tool-sk-cta {
  height: 44px;
  width: 100%;
  border-radius: 999px;
}

.tool-sk-btn {
  height: 44px;
  width: 100%;
  border-radius: 999px;
}

.tool-sk-panel-title {
  height: 16px;
  width: 42%;
  border-radius: 8px;
}

.tool-sk-line {
  height: 12px;
  width: 100%;
  border-radius: 8px;
}

.tool-sk-line-lg {
  width: 96%;
}

.tool-sk-line-md {
  width: 78%;
}

.tool-sk-line-sm {
  width: 62%;
}

.tool-sk-chip {
  height: 32px;
  width: 88px;
  border-radius: 999px;
}

.tool-sk-gallery-title {
  height: 18px;
  width: 140px;
  border-radius: 8px;
}

.tool-sk-shot {
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 18px;
}

.tool-sk-section-title {
  height: 22px;
  width: 220px;
  border-radius: 10px;
}

.tool-sk-reco-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.tool-sk-reco-line {
  height: 12px;
  width: 88%;
  border-radius: 8px;
}

@keyframes toolSkShimmer {
  100% {
    transform: translateX(120%);
  }
}

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

@keyframes toolSkPulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 980px) {
  .tool-skeleton-hero {
    grid-template-columns: 76px 1fr;
  }

  .tool-skeleton-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }

  .tool-sk-cta,
  .tool-sk-btn {
    flex: 1 1 140px;
    width: auto;
  }

  .tool-skeleton-grid,
  .tool-skeleton-reco-grid,
  .tool-skeleton-shots {
    grid-template-columns: 1fr;
  }

  .tool-sk-logo {
    width: 76px;
    height: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-skeleton,
  .tool-sk::after,
  .tool-skeleton-spinner,
  .tool-skeleton-foot-dot {
    animation: none !important;
  }
}

.tool-detail-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 80%, rgba(125, 95, 255, 0.16), transparent 34%),
    radial-gradient(circle at 85% 85%, rgba(255, 122, 168, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
  box-shadow: var(--shadow-md);
  padding: 28px;
  overflow: hidden;
}

.tool-hero {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 18px;
  align-items: start;
}

.tool-brand-box {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tool-brand-box img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
}

.tool-main h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-family: var(--font-head);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-site-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  word-break: break-word;
}

.tool-site-link:hover {
  color: var(--text);
}

.tool-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tool-pill {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

a.tool-pill {
  text-decoration: none;
}

.tool-pill-cat {
  border-color: rgba(109, 93, 252, 0.35);
  background: rgba(109, 93, 252, 0.12);
}

a.tool-pill-cat:hover {
  border-color: rgba(109, 93, 252, 0.52);
  background: rgba(109, 93, 252, 0.18);
}

.tool-pill-sub {
  border-color: rgba(109, 93, 252, 0.22);
  background: rgba(109, 93, 252, 0.07);
}

.tool-pill-price {
  border-color: rgba(16, 185, 129, 0.42);
  background: rgba(16, 185, 129, 0.14);
}

.tool-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-top: 24px;
}

.tool-panel {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
}

.tool-panel-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.tool-panel-text {
  color: var(--text);
  opacity: 0.94;
  line-height: 1.75;
  font-size: 15px;
  word-break: break-word;
}

.tool-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-keyword-chip {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  color: var(--text);
  font-weight: 700;
}

.tool-gallery-wrap {
  margin-top: 24px;
}

.tool-gallery-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.tool-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tool-shot {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 10;
}

.tool-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* recommended / alternatives */
.tool-section-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 80%, rgba(125, 95, 255, 0.12), transparent 34%),
    radial-gradient(circle at 85% 85%, rgba(255, 122, 168, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.tool-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tool-section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 44px);
  font-family: var(--font-head);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.tool-section-sub {
  color: var(--muted);
  font-size: 14px;
}

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

.tool-reco-card {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
}

.tool-reco-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tool-reco-logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tool-reco-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.tool-reco-name {
  margin: 0;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-reco-meta {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.tool-reco-desc {
  color: var(--text);
  opacity: 0.92;
  line-height: 1.7;
  font-size: 14px;
  min-height: 72px;
}

.tool-reco-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tool-empty {
  text-align: center;
  padding: 26px 12px;
  color: var(--muted);
  font-weight: 700;
}

/* small tune for button group in tool page */
.tool-hero-actions .btn,
.tool-reco-actions .tool-visit,
.tool-reco-actions .tool-explore {
  min-height: 44px;
}

/* mobile */
@media (max-width: 980px) {
  .tool-hero {
    grid-template-columns: 80px 1fr;
  }

  .tool-hero-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 8px;
  }

  .tool-content-grid {
    grid-template-columns: 1fr;
  }

  .tool-reco-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .tool-page-shell {
    padding-top: 98px;
  }

  .tool-detail-card,
  .tool-section-card {
    padding: 18px;
    border-radius: 24px;
  }

  .tool-hero {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tool-brand-box {
    width: 76px;
    height: 76px;
    border-radius: 20px;
  }

  .tool-brand-box img {
    width: 48px;
    height: 48px;
  }

  .tool-gallery {
    grid-template-columns: 1fr;
  }

  .tool-site-link {
    font-size: 14px;
  }
}

@media (prefers-color-scheme: dark) {

  .tool-loading-card,
  .tool-detail-card,
  .tool-section-card,
  .tool-reco-card,
  .tool-shot,
  .tool-panel,
  .tool-brand-box,
  .tool-reco-logo,
  .tool-keyword-chip,
  .tool-pill {
    border-color: rgba(255, 255, 255, 0.10);
  }

  .tool-loading-card--error {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.04)),
      linear-gradient(135deg, rgba(109, 93, 252, 0.09), rgba(255, 122, 168, 0.05));
  }

  .tool-skeleton-detail,
  .tool-skeleton-section {
    background:
      radial-gradient(circle at 15% 80%, rgba(125, 95, 255, 0.16), transparent 34%),
      radial-gradient(circle at 85% 85%, rgba(255, 122, 168, 0.12), transparent 34%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.04));
  }

  .tool-skeleton-panel,
  .tool-skeleton-reco-card {
    background: rgba(255, 255, 255, 0.04);
  }

  .tool-sk {
    background: rgba(255, 255, 255, 0.08);
  }

  .tool-sk::after {
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.14) 45%,
      transparent 100%
    );
  }

  .tool-detail-card,
  .tool-section-card {
    background:
      radial-gradient(circle at 15% 80%, rgba(125, 95, 255, 0.16), transparent 34%),
      radial-gradient(circle at 85% 85%, rgba(255, 122, 168, 0.12), transparent 34%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.04));
  }

  .tool-panel,
  .tool-reco-card,
  .tool-shot,
  .tool-brand-box,
  .tool-reco-logo,
  .tool-keyword-chip,
  .tool-pill {
    background: rgba(255, 255, 255, 0);
  }

  .tool-pill-cat {
    border-color: rgba(167, 139, 250, 0.38);
    background: rgba(109, 93, 252, 0.22);
  }

  .tool-pill-sub {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
  }

  .tool-pill-price {
    border-color: rgba(52, 211, 153, 0.45);
    background: rgba(16, 185, 129, 0.22);
  }
}




/* =========================
   TOOL PAGE FINAL POLISH
========================= */

/* hero top area */
.tool-page-head {
  max-width: 860px;
  margin: 0 auto 13px;
  text-align: center;
}

.tool-page-head .page-title {
  margin: 0 auto;
  width: 100%;
  font-size: clamp(40px, 6vw, 53px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-family: var(--font-head);

  text-align: center;
  overflow: visible;
  padding: 0 12px 8px;
}

/* tool page title gradient — SAME THEME STYLE */
.tool-name-normal {
  color: var(--text);
}

.tool-name-gradient {
  background: linear-gradient(90deg,
      rgba(97, 128, 255, 0.95),
      rgba(255, 128, 214, 0.95),
      rgba(255, 80, 80, 0.95));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* detail card title */
.tool-name-rich {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* card title a bit smaller */
.tool-main h1 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-family: var(--font-head);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* website line smaller */
.tool-site-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  word-break: break-word;
}

.tool-site-link:hover {
  color: var(--text);
}

/* pills slightly smaller */
.tool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tool-pill {
  min-height: 29px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

a.tool-pill {
  text-decoration: none;
}

.tool-pill-cat {
  border-color: rgba(109, 93, 252, 0.35);
  background: rgba(109, 93, 252, 0.12);
}

a.tool-pill-cat:hover {
  border-color: rgba(109, 93, 252, 0.52);
  background: rgba(109, 93, 252, 0.18);
}

.tool-pill-sub {
  border-color: rgba(109, 93, 252, 0.22);
  background: rgba(109, 93, 252, 0.07);
}

.tool-pill-price {
  border-color: rgba(16, 185, 129, 0.42);
  background: rgba(16, 185, 129, 0.14);
}

/* buttons */
.tool-primary-cta {
  min-height: 44px;
  padding: 0 39px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(109, 93, 252, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.tool-primary-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(109, 93, 252, 0.22);
  filter: saturate(1.04);
}

.tool-secondary-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tool-secondary-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 93, 252, 0.18);
  background: rgba(109, 93, 252, 0.05);
}

/* content grid spacing */
.tool-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px 22px;
  margin-top: 24px;
}

/* panel headings */
.tool-panel-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

/* paragraph size — as you wanted */
.tool-panel-text {
  color: var(--text);
  opacity: 0.94;
  line-height: 1.8;
  font-size: 13px;
  word-break: break-word;
}

/* highlights + pricing list */
.tool-point-list {
  margin: 0;
  padding-left: 20px;
}

.tool-point-list li {
  margin-bottom: 10px;
  line-height: 1.8;
  font-size: 13px;
  color: var(--text);
}

/* BEST FOR — missing styling fixed */
.tool-bestfor {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.tool-bestfor-chip {
  padding: 8px 13px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
}

/* keywords smaller */
.tool-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-keyword-chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
}

/* full width keyword panel */
.tool-panel-full {
  grid-column: 1 / -1;
}

/* reco section smaller */
.tool-section-title {
  margin: 0;
  font-size: clamp(24px, 4vw, 42px);
  font-family: var(--font-head);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.tool-section-sub {
  color: var(--muted);
  font-size: 13px;
}

.tool-reco-name {
  margin: 0;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-reco-meta {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.tool-reco-desc {
  color: var(--text);
  opacity: 0.92;
  line-height: 1.7;
  font-size: 13px;
  min-height: 64px;
}

/* hero title center fix */
.page-title .tool-name-normal,
.page-title .tool-name-gradient {
  display: inline-block;
  vertical-align: middle;
  overflow: visible;
}

.tool-page-head {
  overflow: visible;
}

.tool-name-gradient {
  padding-bottom: 0.08em;
}

.tool-name-normal {
  padding-bottom: 0.08em;
}

/* dark mode fixes */
@media (prefers-color-scheme: dark) {

  .tool-bestfor-chip,
  .tool-keyword-chip,
  .tool-secondary-btn,
  .tool-pill {
    background: rgba(255, 255, 255, 0.046);
    border-color: rgba(255, 255, 255, 0.10);
  }

  .tool-pill-cat {
    border-color: rgba(167, 139, 250, 0.38);
    background: rgba(109, 93, 252, 0.22);
  }

  .tool-pill-sub {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
  }

  .tool-pill-price {
    border-color: rgba(52, 211, 153, 0.42);
    background: rgba(16, 185, 129, 0.2);
  }

  .tool-secondary-btn:hover {
    background: rgba(109, 93, 252, 0.14);
    border-color: rgba(155, 107, 255, 0.22);
  }

  .tool-primary-cta {
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.30);
  }
}

/* tablet */
@media (max-width: 980px) {
  .tool-content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* mobile */
@media (max-width: 768px) {
  .tool-page-head .page-title {
    font-size: 38px;
    line-height: 1.08;
  }

  .tool-main h1 {
    font-size: 24px;
  }

  .tool-primary-cta,
  .tool-secondary-btn {
    min-height: 42px;
    font-size: 13px;
  }

  .tool-bestfor-chip,
  .tool-keyword-chip {
    font-size: 11px;
  }
}

.tool-page-head .page-title .tool-name-normal,
.tool-page-head .page-title .tool-name-gradient {
  display: inline;
}



/* ===== SEO PAGE — Recommended & Alternatives color ===== */
.tool-reco-meta {
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(90deg,
      rgba(97, 128, 255, 0.95),
      rgba(255, 128, 214, 0.95),
      rgba(255, 80, 80, 0.95));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* ===== Button spacing fix ===== */
.tool-reco-actions {
  margin-top: 16px !important;
}

.tool-reco-desc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tool page pe blink fix — static badge pe hover animation disable */
.tool-hero-actions+.rc-star-badge:hover,
.tool-hero-actions~.rc-star-badge:hover {
  transform: none !important;
  border-color: transparent !important;
}

html.theme-dark .tool-skeleton-detail,
html.theme-dark .tool-skeleton-section {
  background:
    radial-gradient(circle at 15% 80%, rgba(125, 95, 255, 0.16), transparent 34%),
    radial-gradient(circle at 85% 85%, rgba(255, 122, 168, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.04));
}

html.theme-dark .tool-skeleton-panel,
html.theme-dark .tool-skeleton-reco-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

html.theme-dark .tool-sk {
  background: rgba(255, 255, 255, 0.08);
}

html.theme-dark .tool-sk::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.14) 45%,
    transparent 100%
  );
}