/* ==========================================================================
   AI Nexus — Unified Design System (styles.css)
   ========================================================================== */

:root {
  --bg: #09090b;
  --bg-elevated: #111114;
  --panel: rgba(24, 24, 27, 0.72);
  --panel-solid: #18181b;
  --panel-hover: rgba(34, 34, 38, 0.94);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-bright: rgba(245, 158, 11, 0.45);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --subtle: #71717a;
  --primary: #f59e0b;
  --primary-light: #fbbf24;
  --primary-glow: rgba(245, 158, 11, 0.22);
  --accent: #d97706;
  --card-border: rgba(255, 255, 255, 0.07);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% -5%, rgba(245, 158, 11, 0.16), transparent 46%),
    radial-gradient(circle at 12% 38%, rgba(217, 119, 6, 0.07), transparent 34%),
    radial-gradient(circle at 88% 78%, rgba(180, 83, 9, 0.06), transparent 40%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

/* Sticky anchor offset so headings are never hidden under navbar */
[id] {
  scroll-margin-top: 92px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1280px;
  margin: auto;
  padding: 15px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  display: grid;
  place-items: center;
  box-shadow: 0 0 20px var(--primary-glow);
  font-size: 16px;
  color: #09090b;
  font-weight: 800;
}

.brand span {
  background: linear-gradient(135deg, #ffffff 40%, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: 9px;
  border: 1px solid transparent; /* Fixes hover layout shift */
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-cta {
  margin-left: 6px;
  padding: 8px 16px;
  border-radius: 9px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
  color: var(--primary-light);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--primary);
  color: #09090b;
  border-color: var(--primary);
  box-shadow: 0 0 18px var(--primary-glow);
}

.menu {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 40px;
  height: 40px;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.menu:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line-strong);
}

/* ==========================================================================
   Hero Section (Homepage)
   ========================================================================== */
.hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 74px 28px 42px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
  border-radius: 999px;
  color: var(--primary-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-light);
  box-shadow: 0 0 10px var(--primary);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.07;
  font-weight: 800;
  letter-spacing: -1.6px;
  margin: 22px auto 18px;
}

.gradient {
  background: linear-gradient(135deg, #ffffff 25%, #fbbf24 68%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.68;
  font-weight: 400;
}

/* Hero Global Search Box */
.hero-search-wrap {
  position: relative;
  max-width: 580px;
  margin: 0 auto 24px;
}

.hero-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--subtle);
  pointer-events: none;
  display: flex;
}

.search-input {
  width: 100%;
  background: rgba(24, 24, 27, 0.85);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 15px 46px 15px 48px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-input::placeholder {
  color: var(--subtle);
}

.search-input:focus {
  border-color: var(--primary);
  background: rgba(24, 24, 27, 0.98);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.search-clear.visible {
  display: inline-flex;
}

.search-clear:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.hero-stats {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 13.5px;
}

.hero-stat strong {
  color: #fafafa;
  font-weight: 700;
}

.hero-stat-sep {
  color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Main Content Container & Filter Chips
   ========================================================================== */
.wrap {
  max-width: 1280px;
  margin: auto;
  padding: 12px 28px 90px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding: 14px 18px;
  background: rgba(24, 24, 27, 0.55);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover {
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
}

.chip.active {
  background: var(--primary);
  color: #09090b;
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}

.result-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.result-count strong {
  color: #fafafa;
}

/* ==========================================================================
   Direct Tool Search Results (Homepage Global Search)
   ========================================================================== */
.direct-results {
  display: none;
  margin-bottom: 42px;
}

.direct-results.visible {
  display: block;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-heading {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #fafafa;
}

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

/* ==========================================================================
   Category Grid & Cards (Homepage)
   ========================================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
}

/* Fixed Card Link Flex Alignment Bug */
.card > a {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  background: var(--panel-hover);
  border-color: var(--line-bright);
  box-shadow: 0 18px 34px -12px rgba(0, 0, 0, 0.65), 0 0 24px var(--primary-glow);
}

.card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #18181b, #111114);
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.img-fallback {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.2), #141418 75%);
}

.img-fallback-label {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-light);
  text-align: center;
  letter-spacing: 0.3px;
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.tag {
  font-size: 11px;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-weight: 700;
}

.count-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 999px;
}

.card h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  color: #fafafa;
}

.card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.open {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-light);
  transition: color 0.2s ease;
}

.open-arrow {
  color: var(--accent);
  transition: transform 0.2s ease, color 0.2s ease;
}

.card:hover .open {
  color: #fff;
}

.card:hover .open-arrow {
  transform: translateX(4px);
  color: var(--primary-light);
}

/* ==========================================================================
   Tool Platform Cards (Used in Detail Page & Global Direct Search)
   ========================================================================== */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--card-border);
  border-radius: 15px;
  background: rgba(14, 14, 18, 0.72);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  background: var(--panel-hover);
  border-color: var(--line-bright);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45), 0 0 18px var(--primary-glow);
}

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

.tool-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tool-favicon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.tool-favicon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.tool-favicon.is-fallback {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1));
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--primary-light);
  font-weight: 800;
  font-size: 15px;
}

.tool-title-group {
  min-width: 0;
}

.tool-title {
  font-size: 16px;
  font-weight: 700;
  color: #fafafa;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-cat-label {
  font-size: 11.5px;
  color: var(--subtle);
  margin-top: 2px;
}

.pricing-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pricing-free {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pricing-freemium {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.pricing-paid {
  background: rgba(244, 63, 94, 0.13);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.pricing-oss {
  background: rgba(56, 189, 248, 0.13);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.tool-desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.62;
  margin-bottom: 16px;
}

.tool-card-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tool-domain {
  font-size: 12px;
  color: var(--subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-light);
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.tool-card:hover .visit-btn {
  color: #fff;
}

.tool-card:hover .visit-arrow {
  transform: translate(2px, -2px);
}

.visit-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

/* ==========================================================================
   Detail Page Layout (aidetail.html)
   ========================================================================== */
.detail-wrap {
  max-width: 1280px;
  margin: auto;
  padding: 40px 28px 90px;
}

.detail-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary-light);
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
  transition: all 0.2s ease;
}

.back:hover {
  color: #fff;
  background: rgba(245, 158, 11, 0.16);
  border-color: var(--line-bright);
}

.breadcrumb {
  font-size: 13px;
  color: var(--subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb span.current {
  color: var(--muted);
}

/* Clean detail container (NO distracting full-box hover glow) */
.detail-card {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 28px;
}

.detail-top {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.15fr);
  gap: 32px;
  align-items: center;
}

.detail-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #18181b;
  border-radius: 14px;
  border: 1px solid var(--card-border);
}

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

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.detail-badge {
  display: inline-flex;
  padding: 5px 12px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.09);
  border-radius: 999px;
  color: var(--primary-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.detail-copy h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1.4px;
  margin: 16px 0 14px;
}

.detail-intro {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.72;
  max-width: 640px;
  margin-bottom: 18px;
}

.detail-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Detail In-Page Search & Pricing Filter Bar */
.detail-controls {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.detail-search-wrap {
  position: relative;
  width: min(320px, 100%);
}

.detail-search-wrap .search-input {
  padding: 10px 36px 10px 38px;
  font-size: 13.5px;
  border-radius: 10px;
}

.detail-search-wrap .hero-search-icon {
  left: 12px;
}

/* Related Categories */
.related-section {
  margin-top: 56px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Empty & Not Found States */
.empty {
  display: none;
  text-align: center;
  color: var(--muted);
  padding: 64px 20px;
  font-size: 15px;
  background: var(--panel);
  border-radius: 16px;
  border: 1px dashed var(--line-strong);
}

.empty.visible {
  display: block;
}

.empty-btn {
  margin-top: 16px;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
  color: var(--primary-light);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.empty-btn:hover {
  background: var(--primary);
  color: #09090b;
}

.not-found {
  text-align: center;
  padding: 64px 20px;
}

.not-found h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

/* ==========================================================================
   Professional Multi-Column Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(9, 9, 11, 0.94);
  padding: 54px 28px 28px;
}

.footer-inner {
  max-width: 1280px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.footer-desc {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.68;
  max-width: 360px;
}

.footer-col h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fafafa;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-links button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13.5px;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--primary-light);
}

.footer-bottom {
  max-width: 1280px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--subtle);
  font-size: 12.5px;
}

/* ==========================================================================
   Submit a Tool Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  width: min(480px, 100%);
  background: #141418;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.modal-head h2 {
  font-size: 20px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.modal-sub {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #d4d4d8;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #09090b;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.submit-btn {
  width: 100%;
  margin-top: 6px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #09090b;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.submit-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.submit-status {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 13px;
  font-weight: 600;
}

.submit-status.show {
  display: block;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1080px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .tool-grid,
  .related-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-top {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(18, 18, 22, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.85);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 6px;
    text-align: center;
  }

  .menu {
    display: inline-flex;
  }

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

  .hero {
    padding: 54px 20px 32px;
  }

  .detail-wrap {
    padding: 28px 18px 70px;
  }

  .detail-card {
    padding: 20px;
  }

  .detail-search-wrap {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .nav {
    padding: 14px 18px;
  }

  .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .hero h1 {
    font-size: 34px;
  }
}
