/**
 * ToolNixy — dark futuristic theme
 * Primary: var(--tnx-primary) default #38BDF8
 */

:root {
  --tnx-primary: #38bdf8;
  --tnx-primary-strong: #0ea5e9;
  --tnx-accent: #8b5cf6;
  --tnx-accent-hot: #ec4899;
  --tnx-text: #f8fafc;
  /* Body/sidebar text on dark — was #a8b3c7; lifted for WCAG-friendly secondary text */
  --tnx-muted: #c5cedd;
  --tnx-border: rgba(148, 163, 184, 0.22);
  --tnx-bg: #030712;
  --tnx-bg-soft: rgba(15, 23, 42, 0.74);
  --tnx-bg-card: rgba(15, 23, 42, 0.78);
  --tnx-bg-elevated: rgba(30, 41, 59, 0.72);
  --tnx-bg-hero-bottom:
    radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.22), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(139, 92, 246, 0.22), transparent 32%),
    linear-gradient(135deg, #020617 0%, #0f172a 52%, #111827 100%);
  --tnx-radius: 18px;
  --tnx-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --tnx-max: 1200px;
  --tnx-header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  color: var(--tnx-text);
  background:
    radial-gradient(circle at 10% 5%, rgba(56, 189, 248, 0.14), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(139, 92, 246, 0.13), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #030712 40%, #0b1120 100%);
  background-attachment: fixed;
}

body.toolnixy-theme .site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(var(--tnx-max), 100% - 32px);
  margin-inline: auto;
}

.tnx-fullwidth {
  width: min(100% - 32px, 1400px);
}

.tnx-narrow {
  max-width: 720px;
  margin-inline: auto;
}

.tkx-section,
.tnx-section {
  padding-block: 4rem;
}

.tnx-section-pad {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.tnx-text-center {
  text-align: center;
}

.tnx-muted {
  color: var(--tnx-muted);
  margin: 0;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  top: 8px;
  left: 8px;
  z-index: 99999;
  padding: 12px 16px;
  background: var(--tnx-primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--tnx-radius);
}

/* ---- Header ---- */
.tnx-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.78);
  border-bottom: 1px solid var(--tnx-border);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.tnx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--tnx-header-h);
}

.tnx-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--tnx-text);
}

.tnx-site-logo {
  display: block;
  width: 58px;
  height: 48px;
  max-width: 58px;
  object-fit: contain;
  object-position: center;
}

.tnx-logo-text {
  color: var(--tnx-text);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}

.tnx-branding .custom-logo-link {
  display: flex;
  align-items: center;
}

.tnx-branding img {
  max-height: 46px;
  width: auto;
}

.tnx-branding .tnx-site-logo {
  max-height: 48px;
}

.tnx-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.tnx-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--tnx-text);
  border-radius: 1px;
}

.tnx-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.tnx-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.tnx-menu a {
  text-decoration: none;
  color: var(--tnx-text);
  font-weight: 500;
}

.tnx-menu a:hover,
.tnx-menu .current-menu-item > a {
  color: var(--tnx-primary);
}

.tnx-nav-cta {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .tnx-nav-toggle {
    display: flex;
  }

  .tnx-nav {
    position: absolute;
    top: var(--tnx-header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(2, 6, 23, 0.96);
    border-bottom: 1px solid var(--tnx-border);
    padding: 1rem;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  .tnx-nav.is-open {
    max-height: 480px;
    opacity: 1;
    visibility: visible;
  }

  .tnx-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .tnx-menu a {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--tnx-border);
  }

  .tnx-nav-cta {
    margin-top: 1rem;
    text-align: center;
  }
}

/* ---- Buttons ---- */
.tnx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--tnx-radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tnx-btn-primary {
  background: var(--tnx-primary);
  color: #fff;
  border-color: var(--tnx-primary);
}

.tnx-btn-primary:hover {
  background: #172554;
  border-color: #172554;
  color: #fff;
}

.tnx-btn-secondary {
  background: #fff;
  color: var(--tnx-primary);
  border-color: var(--tnx-primary);
}

.tnx-btn-secondary:hover {
  background: #eef2ff;
}

.tnx-btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

.tnx-btn-ghost {
  background: transparent;
  border-color: var(--tnx-border);
  color: var(--tnx-text);
}

/* ---- Front: logged-in editor hint (above marketing layout) ---- */
.tnx-home-editor-hint {
  background: var(--tnx-primary);
  color: #fff;
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.tnx-home-editor-hint p {
  margin: 0;
  line-height: 1.5;
}

.tnx-home-editor-hint a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.tnx-home-editor-hint a:hover {
  text-decoration: none;
}

/* Full-width Elementor home template */
.tnx-page-home-elementor .tnx-home-elementor-content > .elementor {
  max-width: none;
}

/* ---- Hero ---- */
.tnx-hero {
  background: var(--tnx-bg-hero-bottom);
  padding: clamp(3rem, 8vw, 5rem) 0;
  border-bottom: 1px solid var(--tnx-border);
}

.tnx-hero-inner {
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}

.tnx-badge {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tnx-primary);
  background: #eef2ff;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.tnx-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--tnx-text);
}

.tnx-hero-sub {
  font-size: 1.1rem;
  color: var(--tnx-muted);
  margin: 0 0 1.75rem;
}

.tnx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---- Stats ---- */
.tnx-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.tnx-stat-card {
  background: var(--tnx-bg-soft);
  border: 1px solid var(--tnx-border);
  border-radius: var(--tnx-radius);
  padding: 1.25rem;
  text-align: center;
}

.tnx-stat-num {
  display: block;
  font-size: 1.5rem;
  color: var(--tnx-primary);
  margin-bottom: 0.25rem;
}

/* ---- Sections ---- */
.tnx-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin: 0 0 0.5rem;
}

.tnx-section-lead {
  text-align: center;
  color: var(--tnx-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.tnx-section-action {
  margin: 2rem 0 0;
  text-align: center;
}

.tnx-page-header {
  margin-bottom: 2rem;
  text-align: center;
}

.tnx-page-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.5rem;
}

.tnx-lead {
  font-size: 1.1rem;
  color: var(--tnx-muted);
}

/* ---- Cards & grids ---- */
.tnx-card {
  background: #fff;
  border: 1px solid var(--tnx-border);
  border-radius: var(--tnx-radius);
  padding: 1.5rem;
  box-shadow: var(--tnx-shadow);
}

.tnx-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tnx-tool-card {
  border: 1px solid var(--tnx-border);
  border-radius: var(--tnx-radius);
  padding: 1.5rem;
  background: #fff;
  box-shadow: var(--tnx-shadow);
  display: flex;
  flex-direction: column;
}

.tnx-tool-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #eef2ff;
  color: var(--tnx-primary);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.tnx-tool-card-cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tnx-muted);
}

.tnx-tool-card-title {
  margin: 0.35rem 0;
  font-size: 1.1rem;
}

.tnx-tool-card-title a {
  color: inherit;
  text-decoration: none;
}

.tnx-tool-card-title a:hover {
  color: var(--tnx-primary);
}

.tnx-tool-card-excerpt {
  flex: 1;
  color: var(--tnx-muted);
  font-size: 0.925rem;
  margin: 0 0 1rem;
}

/* Homepage: Most Popular Tools — horizontal marquee */
.tnx-featured .tnx-section-lead {
  margin-bottom: 1.5rem;
}

.tnx-featured-marquee {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 -0.5rem;
}

.tnx-marquee-shell {
  flex: 1;
  min-width: 0;
  position: relative;
  mask-image: linear-gradient(to right, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent);
}

.tnx-marquee-viewport {
  overflow: hidden;
  padding-block: 0.35rem 0.75rem;
  outline: none;
  -webkit-font-smoothing: antialiased;
  cursor: grab;
  touch-action: pan-y;
}

.tnx-marquee-viewport.tnx-marquee-dragging {
  cursor: grabbing;
  user-select: none;
  touch-action: none;
}

.tnx-marquee-viewport:focus-visible {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
  border-radius: var(--tnx-radius, 12px);
}

/* Transform-based drift = buttery smooth vs integer scrollLeft stepping */
.tnx-marquee-mover {
  --tnx-marquee-slot-gap: 1.25rem;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  column-gap: var(--tnx-marquee-slot-gap);
  row-gap: 0;
  width: max-content;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
}

.tnx-marquee-batch {
  --tnx-marquee-card-w: clamp(260px, 72vw, 340px);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  column-gap: var(--tnx-marquee-slot-gap);
  row-gap: 0;
  align-items: stretch;
  flex-shrink: 0;
  padding-inline: 0;
  justify-content: flex-start;
}

.tnx-marquee-batch .tnx-tool-card {
  flex: 0 0 var(--tnx-marquee-card-w);
  flex-shrink: 0;
  width: var(--tnx-marquee-card-w);
  min-width: var(--tnx-marquee-card-w);
  max-width: var(--tnx-marquee-card-w);
  margin: 0;
  box-sizing: border-box;
}

/* Keep horizontal rhythm: global card hover uses translateY, which skews perceived gutters in a row */
.tnx-marquee-batch .tnx-tool-card {
  transition:
    border-color 0.2s ease,
    box-shadow 0.22s ease;
}

.tnx-marquee-batch .tnx-tool-card:hover {
  transform: none;
}

.tnx-marquee-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--tnx-border);
  background: var(--tnx-bg-soft);
  color: var(--tnx-primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  box-shadow: var(--tnx-shadow);
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.tnx-marquee-btn:hover {
  transform: translateY(-1px);
  border-color: var(--tnx-primary);
}

.tnx-marquee-btn:active {
  transform: translateY(0);
}

@media (max-width: 479px) {
  .tnx-featured-marquee {
    gap: 0.35rem;
    margin-inline: -0.25rem;
  }

  .tnx-marquee-btn {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .tnx-marquee-shell {
    mask-image: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tnx-marquee-mover {
    will-change: auto;
  }
}

/* Categories */
.tnx-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.tnx-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--tnx-bg-soft);
  border: 1px solid var(--tnx-border);
  text-decoration: none;
  color: var(--tnx-text);
  font-weight: 500;
}

.tnx-pill:hover {
  border-color: var(--tnx-primary);
  color: var(--tnx-primary);
}

.tnx-pill-lg {
  padding: 0.55rem 1.1rem;
}

.tnx-pill-count {
  font-size: 0.8rem;
  background: #e0e7ff;
  color: var(--tnx-primary);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

/* How */
.tnx-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tnx-step-num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--tnx-primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.tnx-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

/* Benefits */
.tnx-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tnx-benefit h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

/* Recent */
.tnx-recent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.tnx-recent-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tnx-primary);
}

.tnx-recent-card h3 {
  margin: 0.5rem 0;
  font-size: 1rem;
}

/* Testimonials */
.tnx-test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tnx-test-card {
  margin: 0;
}

.tnx-stars {
  color: #f59e0b;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

/* Newsletter */
.tnx-newsletter-card {
  text-align: center;
}

.tnx-newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.tnx-newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--tnx-border);
  border-radius: var(--tnx-radius);
}

/* Tool single */
.tnx-breadcrumbs {
  background: var(--tnx-bg-soft);
  border-bottom: 1px solid var(--tnx-border);
  font-size: 0.875rem;
  padding: 0.65rem 0;
}

.tnx-breadcrumbs-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.tnx-breadcrumbs a {
  color: var(--tnx-primary);
  text-decoration: none;
}

.tnx-bc-current {
  color: var(--tnx-muted);
}

.tnx-tool-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.tnx-tool-header-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--tnx-radius);
  background: #eef2ff;
  color: var(--tnx-primary);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tnx-tool-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.tnx-tool-workspace {
  margin-bottom: 2rem;
}

.tnx-related {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--tnx-border);
}

/* Blog */
.tnx-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.tnx-post-card {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--tnx-border);
}

.tnx-sidebar .widget {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--tnx-bg-soft);
  border-radius: var(--tnx-radius);
  border: 1px solid var(--tnx-border);
}

.widget-title {
  margin-top: 0;
  font-size: 1rem;
}

/* Footer — background finalized in “Dark 2026 refresh” block below */
.tnx-footer {
  margin-top: auto;
  padding-top: 3rem;
  color: #e8edf5;
}

.tnx-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.tnx-footer .footer-widget-title,
.tnx-footer .widget-title {
  color: #fff;
  font-size: 0.95rem;
}

.tnx-footer a {
  color: #d8e2ef;
}

.tnx-footer a:hover {
  color: #fff;
}

.tnx-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
}

.tnx-footer-bottom-inner {
  text-align: center;
}

.tnx-copyright {
  margin: 0;
  font-size: 0.875rem;
  color: #b8c6d9;
}

.tnx-footer-menu-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

.tnx-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* 404 */
.tnx-404-code {
  font-size: 4rem;
  font-weight: 800;
  color: var(--tnx-primary);
  margin: 0;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--tnx-border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--tnx-text);
}

.pagination .current {
  background: var(--tnx-primary);
  color: #fff;
  border-color: var(--tnx-primary);
}

/* Entry content (Gutenberg) */
.entry-content > * + * {
  margin-top: 1rem;
}

.alignwide {
  max-width: var(--tnx-max);
  margin-inline: auto;
}

/* Tablets */
@media (max-width: 1199px) {
  .tnx-tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tnx-recent-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tnx-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .tnx-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .tnx-steps {
    grid-template-columns: 1fr;
  }

  .tnx-benefit-grid {
    grid-template-columns: 1fr;
  }

  .tnx-recent-grid {
    grid-template-columns: 1fr;
  }

  .tnx-test-grid {
    grid-template-columns: 1fr;
  }

  .tnx-with-sidebar {
    grid-template-columns: 1fr;
  }

  .tnx-footer-grid {
    grid-template-columns: 1fr;
  }

  .tnx-newsletter-form input[type="email"],
  .tnx-newsletter-form .tnx-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .tnx-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Dark 2026 visual refresh ---- */
a {
  color: var(--tnx-primary);
}

a:hover {
  color: #7dd3fc;
}

.tnx-logo-text {
  background: linear-gradient(90deg, #fff, #bae6fd 42%, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.16);
}

.tnx-menu a {
  color: #eef4fc;
}

.tnx-menu a:hover,
.tnx-menu .current-menu-item > a {
  color: #7dd3fc;
}

.tnx-nav-toggle span {
  background: #e0f2fe;
}

.tnx-btn {
  border-width: 1px;
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tnx-btn:hover {
  transform: translateY(-2px);
}

.tnx-btn-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #2563eb 48%, #7c3aed 100%);
  color: #fff;
  border-color: rgba(125, 211, 252, 0.5);
  box-shadow: 0 18px 46px rgba(37, 99, 235, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.tnx-btn-primary:hover {
  background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 48%, #8b5cf6 100%);
  border-color: rgba(186, 230, 253, 0.7);
}

.tnx-btn-secondary,
.tnx-btn-ghost {
  background: rgba(15, 23, 42, 0.62);
  color: #e0f2fe;
  border-color: rgba(125, 211, 252, 0.28);
  backdrop-filter: blur(14px);
}

.tnx-btn-secondary:hover,
.tnx-btn-ghost:hover {
  background: rgba(30, 41, 59, 0.82);
  border-color: rgba(125, 211, 252, 0.58);
}

.tnx-home-editor-hint {
  background: linear-gradient(90deg, #0ea5e9, #7c3aed);
}

.tnx-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(520px, 72vh, 760px);
  display: grid;
  align-items: center;
  padding: clamp(5rem, 10vw, 8rem) 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.tnx-hero::before {
  content: "";
  position: absolute;
  inset: 7% auto auto 50%;
  width: min(560px, 78vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 999px;
  background: conic-gradient(from 180deg, rgba(56, 189, 248, 0.08), rgba(139, 92, 246, 0.28), rgba(236, 72, 153, 0.12), rgba(56, 189, 248, 0.08));
  filter: blur(38px);
  z-index: -2;
}

.tnx-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 70%);
  z-index: -1;
}

.tnx-hero-inner {
  max-width: 940px;
}

.tnx-badge {
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(125, 211, 252, 0.32);
  box-shadow: 0 0 36px rgba(56, 189, 248, 0.18);
  backdrop-filter: blur(14px);
}

.tnx-hero-title {
  font-size: clamp(2.65rem, 7vw, 5.85rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
  max-width: 960px;
  margin-inline: auto;
  background: linear-gradient(90deg, #fff 0%, #bfdbfe 42%, #67e8f9 70%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}

.tnx-hero-sub {
  max-width: 720px;
  margin-inline: auto;
  color: #d1dae8;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  text-wrap: balance;
}

.tnx-section-title,
.tnx-page-title,
.tnx-tool-title,
.entry-title {
  color: #f8fafc;
  letter-spacing: -0.045em;
}

.tnx-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.tnx-section-lead,
.tnx-lead,
.tnx-muted {
  color: var(--tnx-muted);
}

.tnx-card,
.tnx-tool-card,
.tnx-stat-card,
.tnx-sidebar .widget {
  position: relative;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.62)),
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.1), transparent 36%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--tnx-shadow);
  backdrop-filter: blur(18px);
}

.tnx-tool-card,
.tnx-card {
  overflow: hidden;
}

.tnx-tool-card::before,
.tnx-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.2), transparent 28%, rgba(139, 92, 246, 0.12));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.tnx-tool-card:hover,
.tnx-card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 211, 252, 0.42);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), 0 0 42px rgba(56, 189, 248, 0.08);
}

.tnx-tool-card:hover::before,
.tnx-card:hover::before {
  opacity: 1;
}

.tnx-tool-card-icon,
.tnx-tool-header-icon,
.tnx-step-num {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(139, 92, 246, 0.22));
  color: #7dd3fc;
  border: 1px solid rgba(125, 211, 252, 0.28);
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.12);
}

.tnx-tool-card-title a,
.tnx-tool-card-title,
.tnx-step h3,
.tnx-benefit h3,
.tnx-recent-card h3 {
  color: #f8fafc;
}

.tnx-tool-card-title a:hover {
  color: #7dd3fc;
}

.tnx-tool-card-excerpt,
.tnx-tool-card-cat,
.tnx-bc-current {
  color: var(--tnx-muted);
}

.tnx-stat-num,
.tnx-recent-badge,
.tnx-404-code {
  color: #67e8f9;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.18);
}

.tnx-pill {
  background: rgba(15, 23, 42, 0.68);
  border-color: rgba(148, 163, 184, 0.2);
  color: #dbeafe;
  backdrop-filter: blur(14px);
}

.tnx-pill:hover {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(125, 211, 252, 0.48);
  color: #7dd3fc;
}

.tnx-pill-count {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
}

.tnx-newsletter-form input[type="email"],
input,
textarea,
select {
  background: rgba(2, 6, 23, 0.72);
  border-color: rgba(148, 163, 184, 0.26);
  color: #f8fafc;
}

.tnx-newsletter-form input[type="email"]::placeholder,
input::placeholder,
textarea::placeholder {
  color: #8d9bb3;
}

.tnx-breadcrumbs {
  background: rgba(2, 6, 23, 0.72);
  border-color: rgba(148, 163, 184, 0.18);
}

.tnx-related,
.tnx-post-card {
  border-color: rgba(148, 163, 184, 0.18);
}

.pagination a,
.pagination span {
  background: rgba(15, 23, 42, 0.68);
  border-color: rgba(148, 163, 184, 0.22);
  color: #dbeafe;
}

.pagination .current {
  background: linear-gradient(135deg, #0ea5e9, #7c3aed);
  color: #fff;
}

.tnx-footer {
  background:
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.94), #020617);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

@media (max-width: 767px) {
  .tnx-header {
    background: rgba(2, 6, 23, 0.92);
  }

  .tnx-hero {
    min-height: auto;
    padding-block: 4.5rem;
  }
}
