/* =========================
   ROOT / RESET
========================= */
:root {
  --bg-1: #f6f8ff;
  --bg-2: #eef3ff;
  --surface: #ffffff;
  --surface-soft: #fbfdff;
  --text: #111827;
  --soft: #6b7280;
  --line: #e5e7eb;
  --line-soft: #dfe7f4;
  --line-blue: #dbeafe;
  --brand: #0f5fff;
  --brand-2: #0048d9;
  --brand-3: #2563eb;
  --accent: #7c3aed;
  --accent-2: #4f46e5;
  --success: #166534;
  --warning: #c2410c;
  --shadow: 0 18px 40px rgba(37, 99, 235, 0.12);
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 14px 30px rgba(15, 23, 42, .06);
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 22px;
  --radius-sm: 18px;
  --radius-xs: 16px;
  --container: 1400px;
  --container-wide: 1460px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(15, 95, 255, .09), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, .10), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(56, 189, 248, .06), transparent 28%),
    linear-gradient(180deg, #f5f8ff 0%, #edf3ff 100%);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea {
  outline: none;
}

/* =========================
   GLOBAL LAYOUT
========================= */
.home-shell,
.page-container,
.home-premium-shell,
.job-page-shell,
.page-wrap {
  width: min(var(--container), calc(100% - 16px));
  margin: 24px auto 40px;
}

.page-container {
  background: transparent;
  max-width: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.premium-section {
  margin-top: 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head h2,
.categories h2,
.trending h2,
.all-tools h2 {
  font-size: clamp(1.65rem, 1.25rem + 1vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: #111827;
}

.section-head p {
  color: #667085;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 780px;
}

/* =========================
   HEADER
========================= */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 252, 252, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #0f172a;
  border-bottom: 1px solid rgba(229, 231, 235, .8);
  box-shadow: 0 8px 30px rgba(15, 23, 42, .03);
}

.premium-header {
  padding: 16px 0 18px;
}

.header-inner {
  width: min(var(--container), calc(100% - 16px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
}

.brand-badge {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 10px 22px rgba(0, 0, 0, .10);
  flex: 0 0 52px;
}

.brand-badge i {
  font-size: 1.3rem;
  color: #2563eb;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.brand-text strong,
.logo {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.brand-text small {
  color: #64748b;
  font-size: .9rem;
  font-weight: 500;
}

.main-header .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px;
  text-align: center;
}

.top-link {
  color: #1d4ed8;
  font-weight: 700;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 10px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width:768px) {
  .top-link {
    font-size: .9rem;
    padding: 9px 12px;
  }
}

.header-search-wrap {
  position: relative;
  width: min(620px, 100%);
  margin: 0 auto;
}

.search-box-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #7b8798;
  font-size: .95rem;
  pointer-events: none;
}

#searchInput {
  width: 100%;
  min-height: 56px;
  padding: 0 18px 0 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(252, 252, 252, .98);
  color: #111827;
  box-shadow: 0 16px 35px rgba(0, 0, 0, .12);
}

#searchInput::placeholder {
  color: #7b8798;
}

#searchInput:focus {
  border-color: #bfdbfe;
  box-shadow: 0 0 0 4px rgba(191, 219, 254, .28), 0 16px 35px rgba(0, 0, 0, .12);
}

/* =========================
   SEARCH SUGGEST
========================= */
.search-suggest {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #fcfcfc;
  border: 1px solid #e8eefb;
  border-radius: 22px;
  box-shadow: 0 22px 45px rgba(15, 23, 42, .14);
  overflow: hidden;
  text-align: left;
  z-index: 450;
  max-height: min(60vh, 420px);
  overflow: auto;
  overscroll-behavior: contain;
  backdrop-filter: blur(10px);
}

.search-suggest .s-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  cursor: pointer;
  border-top: 1px solid #f1f5f9;
  transition: .2s ease;
}

.search-suggest .s-item:first-child {
  border-top: none;
}

.search-suggest .s-item:hover {
  background: linear-gradient(180deg, #f8fbff, #f4f8ff);
}

.search-suggest .s-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  flex: 0 0 44px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  border: none;
}

.search-suggest .s-text {
  font-weight: 800;
  font-size: 14px;
  color: #111827;
}

.search-suggest .s-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.4;
  word-break: break-all;
}

/* =========================
   HOMEPAGE PREMIUM UI
========================= */
.home-premium-shell {
  width: min(var(--container), calc(100% - 16px));
  margin: 24px auto 40px;
}

.home-premium-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 30px 24px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
  color: #f8fafc;
  box-shadow: 0 18px 40px rgba(37, 99, 235, .14);
  margin-bottom: 18px;
}

.home-premium-hero::before,
.home-premium-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
  pointer-events: none;
}

.home-premium-hero::before {
  width: 190px;
  height: 190px;
  top: -50px;
  right: -50px;
}

.home-premium-hero::after {
  width: 140px;
  height: 140px;
  left: -35px;
  bottom: -35px;
}

.home-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: 18px;
  align-items: stretch;
}

.home-hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  width: 100%;
  max-width: none;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

.home-hero-copy p {
  margin: 0;
  max-width: 900px;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .93);
}

.home-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: .9rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.home-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.home-hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: .92rem;
  font-weight: 800;
}

.home-hero-side {
  display: grid;
  gap: 14px;
}

.home-stat-card {
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 16px 28px rgba(8, 25, 77, .12);
}

.home-stat-card small {
  display: block;
  color: rgba(255, 255, 255, .78);
  font-weight: 700;
  margin-bottom: 8px;
}

.home-stat-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.home-stat-card p {
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: .95rem;
  line-height: 1.7;
}

.home-search-card {
  background: #fcfcfc;
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(37, 99, 235, .08);
  padding: 22px;
  margin-bottom: 18px;
}

.home-search-head {
  margin-bottom: 14px;
}

.home-search-head h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #111827;
}

.home-search-head p {
  margin: 0;
  color: #64748b;
  line-height: 1.75;
  font-size: .96rem;
}

.home-search-wrap {
  position: relative;
  max-width: 760px;
}

.home-search-box {
  position: relative;
}

.home-search-box i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: .95rem;
  pointer-events: none;
}

.home-search-wrap #searchInput {
  width: 100%;
  min-height: 58px;
  padding: 0 18px 0 48px;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: #f8fbff;
  color: #111827;
  box-shadow: none;
}

.home-search-wrap #searchInput:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(147, 197, 253, .18);
  background: #fff;
}

.home-search-wrap .search-suggest {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e8eefb;
  border-radius: 22px;
  box-shadow: 0 22px 45px rgba(15, 23, 42, .14);
  overflow: hidden;
  text-align: left;
  z-index: 450;
  max-height: min(60vh, 420px);
  overflow: auto;
  overscroll-behavior: contain;
}

.home-section {
  background: #fcfcfc;
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(37, 99, 235, .08);
  padding: 22px;
  margin-top: 18px;
}

.home-section h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: #111827;
}

.home-section>p {
  margin: 0;
  color: #64748b;
  line-height: 1.75;
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
  padding: 10px 4px;
}

.home-category-card {
  position: relative;
  background: linear-gradient(180deg, #fcfcfc, #f8fafc);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: .22s ease;
  color: #111827;
  display: block;
  min-height: 100%;
}

.home-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, .12);
  border-color: #cfe0ff;
}

.home-category-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border: none;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
  margin-bottom: 16px;
  color: #f8fafc;
  font-size: 20px;
}

.home-category-card h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.home-category-card p {
  margin: 0 0 14px;
  color: #64748b;
  line-height: 1.8;
  font-size: .97rem;
}

.home-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.home-card-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.home-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 12px 24px rgba(37, 99, 235, .20);
}

.home-trending-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.home-trending-card {
  background: #fcfcfc;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.home-trending-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111827;
}

.home-trending-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-trending-list li+li {
  border-top: 1px solid #eef2f7;
}

.home-trending-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  color: #1d4ed8;
  font-weight: 800;
  font-size: .96rem;
  transition: .2s ease;
}

.home-trending-list a:hover {
  transform: translateX(3px);
  color: #1e40af;
}

.home-trending-list a::after {
  content: "↗";
  font-size: .92rem;
  opacity: .7;
}

.home-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.home-info-card {
  background: #fcfcfc;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.home-info-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111827;
}

.home-info-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.75;
  font-size: .95rem;
}

.home-faq-list {
  margin-top: 14px;
}

.home-faq-item {
  padding: 14px 0;
  border-bottom: 1px solid #eef2f7;
}

.home-faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.home-faq-item p {
  margin: 0;
  color: #475569;
  line-height: 1.8;
  font-size: .97rem;
}

.home-faq-item strong {
  color: #111827;
}

.home-note-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  color: #475569;
  line-height: 1.75;
  font-size: .92rem;
}

/* =========================
   CATEGORY PAGE UI
========================= */
.job-page-shell {
  width: min(var(--container), calc(100% - 16px));
  margin: 24px auto 40px;
}

.job-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  color: #1d4ed8;
  font-weight: 700;
  margin-bottom: 14px;
  text-decoration: none;
}

.job-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 30px 24px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(37, 99, 235, .14);
  margin-bottom: 18px;
}

.job-hero::before,
.job-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
  pointer-events: none;
}

.job-hero::before {
  width: 190px;
  height: 190px;
  top: -50px;
  right: -50px;
}

.job-hero::after {
  width: 140px;
  height: 140px;
  left: -35px;
  bottom: -35px;
}

.job-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  width: 100%;
  max-width: none;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  position: relative;
  z-index: 2;
}

.job-hero p {
  margin: 0;
  max-width: 1000px;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .93);
  position: relative;
  z-index: 2;
}

.job-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  position: relative;
  z-index: 2;
}

.job-hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: .92rem;
  font-weight: 800;
}

.job-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(37, 99, 235, .08);
  padding: 22px;
  margin-top: 18px;
}

.job-section h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: #111827;
}

.job-section>p {
  margin: 0;
  color: #64748b;
  line-height: 1.75;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.job-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: .22s ease;
  color: #111827;
  min-height: 100%;
  display: block;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, .12);
  border-color: #cfe0ff;
}

.job-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef4ff, #ffffff);
  border: 1px solid rgba(37, 99, 235, .12);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .08);
  margin-bottom: 16px;
  color: #2563eb;
  font-size: 28px;
}

.job-card h3 {
  margin: 0 0 10px;
  font-size: 1.7rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.job-card p {
  margin: 0 0 14px;
  color: #64748b;
  line-height: 1.8;
  font-size: .98rem;
}

.job-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.job-card-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.job-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 12px 24px rgba(37, 99, 235, .20);
}

.job-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.job-info-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.job-info-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111827;
}

.job-info-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.75;
  font-size: .95rem;
}

.faq-list {
  margin-top: 14px;
}

.faq-item {
  padding: 14px 0;
  border-bottom: 1px solid #eef2f7;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item p {
  margin: 0;
  color: #475569;
  line-height: 1.8;
  font-size: .97rem;
}

.faq-item strong {
  color: #111827;
}

.ad-safe-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  color: #475569;
  line-height: 1.75;
  font-size: .92rem;
}

/* =========================
   GENERIC TOOL PAGE / FORM UI
========================= */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #0f5fff;
  font-weight: 700;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 10px 14px;
  border-radius: 999px;
}

.back-btn:hover {
  transform: translateY(-1px);
}

.tool-card {
  background: #fff;
  padding: 26px;
  border-radius: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(229, 231, 235, .95);
  margin-bottom: 20px;
}

.tool-card h2 {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 1.1rem + .5vw, 1.9rem);
  letter-spacing: -0.03em;
  color: #113a9b;
}

label {
  font-size: 14px;
  font-weight: 700;
  margin-top: 10px;
  display: block;
  color: #1f2937;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d9dee8;
  border-radius: 16px;
  padding: 13px 14px;
  background: #fff;
  color: #111827;
  transition: .2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, .16);
}

.result-box {
  margin-top: 20px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #e6f0ff, #ffffff);
  border-radius: 18px;
  display: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f5fff;
  text-align: center;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(15, 95, 255, .08);
}

.info-section {
  background: #f9fbff;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid #edf3ff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

/* =========================
   TABLE UI
========================= */
.table-wrap {
  margin-top: 12px;
  overflow-x: auto;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8eef9;
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  background: #fff;
}

.data-table th {
  text-align: left;
  padding: 14px 12px;
  font-size: 13px;
  color: #113a9b;
  background: #eef5ff;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.data-table td {
  padding: 12px;
  border-top: 1px solid #f0f0f0;
  font-size: 14px;
}

.data-table tbody tr:hover {
  background: #f9fbff;
}

/* =========================
   TOOL HERO / ALL TOOLS
========================= */
.tool-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 18px;
}

.tool-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eaf2ff, #ffffff);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.12);
  flex: 0 0 56px;
}

.tool-icon i {
  font-size: 24px;
  color: #0066ff;
}

.tool-title {
  line-height: 1.15;
}

.tool-title h2 {
  margin: 0;
  font-size: 22px;
}

.tool-title p {
  margin: 6px 0 0;
  font-size: 13px;
  opacity: .78;
  color: var(--soft);
}

.all-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border-radius: 20px;
  color: #111;
  box-shadow:
    0 12px 24px rgba(15, 23, 42, .06),
    0 4px 10px rgba(15, 95, 255, .03);
  border: 1px solid rgba(229, 231, 235, .95);
  transition: .25s;
}

.tool-item i {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eaf2ff, #ffffff);
  border: 1px solid rgba(0, 102, 255, 0.12);
  color: #0066ff;
}

.tool-item span {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.45;
}

.tool-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 28px rgba(15, 23, 42, .10),
    0 8px 16px rgba(15, 95, 255, .05);
}

/* =========================
   PAGE INFO UI
========================= */
.page-hero {
  background: linear-gradient(135deg, rgba(37, 99, 235, .98), rgba(124, 58, 237, .95));
  color: #fff;
  padding: 22px 16px 28px;
  box-shadow: 0 12px 26px rgba(37, 99, 235, .18);
}

.hero-inner {
  width: min(1100px, calc(100% - 8px));
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #eaf2ff;
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 10px 14px;
  border-radius: 999px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.4px;
}

.page-hero p {
  margin: 12px 0 0;
  max-width: 820px;
  color: rgba(255, 255, 255, .92);
  line-height: 1.8;
  font-size: 1rem;
}

.page-wrap {
  width: min(1100px, calc(100% - 16px));
  margin: 20px auto 40px;
}

.page-card {
  background: #fff;
  border: 1px solid rgba(229, 231, 235, .92);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 22px 18px;
  margin-bottom: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.section-title {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 900;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-text {
  margin: 0;
  color: #475569;
  line-height: 1.8;
  font-size: 1rem;
}

.feature-list,
.legal-list {
  margin: 0;
  padding-left: 18px;
  color: #475569;
  line-height: 1.8;
}

.feature-list li,
.legal-list li {
  margin-bottom: 8px;
}

.info-tile {
  background: linear-gradient(180deg, #ffffff, #fafcff);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}

.info-tile h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 900;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-tile p {
  margin: 0;
  color: #475569;
  line-height: 1.75;
  font-size: .96rem;
}

.note-box {
  margin-top: 12px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1e40af;
  border-radius: 18px;
  padding: 14px 16px;
  line-height: 1.7;
  font-size: .95rem;
}

.contact-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 11px 14px;
  font-weight: 800;
  font-size: .95rem;
}

.highlight-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 900;
  color: #111827;
  word-break: break-word;
}

.muted {
  color: var(--soft);
  font-size: .92rem;
  line-height: 1.7;
}

.small-divider {
  height: 1px;
  background: #eef2f7;
  margin: 16px 0;
}

.footer-note {
  text-align: center;
  color: #64748b;
  font-size: .92rem;
  line-height: 1.7;
  padding: 6px 0 0;
}

/* =========================
   FOOTER
========================= */
footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 18px 16px;
  margin-top: 32px;
}

.footer-links {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: white;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* =========================
   Prime
========================= */
.hidden {
  display: none !important;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1120px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 14ch;
  }

  .highlight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {

  .home-hero-grid,
  .home-category-grid,
  .home-info-grid,
  .home-trending-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {

  .job-grid,
  .job-info-grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .page-card {
    padding: 18px 16px;
    border-radius: 24px;
  }

  .page-wrap {
    width: min(100% - 12px, 1100px);
  }

  .page-hero {
    padding: 18px 12px 24px;
  }
}

@media (max-width: 768px) {

  .home-premium-shell,
  .job-page-shell,
  .home-shell,
  .page-container {
    width: min(100% - 16px, var(--container));
    margin: 18px auto 28px;
  }

  .brand-badge {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    flex-basis: 48px;
  }

  .brand-text strong,
  .logo {
    font-size: clamp(1.2rem, 5.8vw, 1.75rem);
  }

  .brand-text small {
    font-size: .82rem;
  }

  .home-premium-hero,
  .job-hero {
    padding: 24px 18px;
  }

  .home-hero-copy h1,
  .job-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    line-height: 1.12;
  }

  .home-category-card h3 {
    font-size: 1.28rem;
  }

  .job-card h3 {
    font-size: 1.42rem;
  }

  .home-section,
  .home-search-card,
  .job-section {
    padding: 18px 16px;
    border-radius: 24px;
  }

  .footer-links {
    gap: 8px 14px;
  }
}

@media (max-width: 520px) {
  .search-suggest {
    border-radius: 18px;
  }

  .search-suggest .s-item {
    padding: 12px;
  }

  .footer-links a {
    font-size: 13px;
  }
}

/* ===== Universal Hero H1 Fix for all tool pages ===== */
[class*="-hero"] h1,
.hero-panel h1,
.page-hero h1,
.tool-hero h1 {
  max-width: none !important;
  width: 100% !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}




/* ===== Prime Tools Hub Guides / Category Content ===== */
.home-guides-section {
  position: relative;
  overflow: hidden
}

.home-guides-section::before {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(79, 70, 229, .06);
  pointer-events: none
}

.home-guides-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap
}

.home-guides-head p {
  max-width: 760px
}

.home-guides-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8, #4f46e5);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(37, 99, 235, .18)
}

.home-guides-grid,
.guide-tool-grid,
.guide-link-grid,
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px
}

.home-guides-grid {
  margin-top: 18px
}

.home-guide-card,
.guide-tool-card,
.guide-link-card,
.guides-card {
  display: block;
  text-decoration: none;
  color: #111827;
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid #dbe7fb;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, .07);
  transition: transform .22s ease, box-shadow .22s ease
}

.home-guide-card:hover,
.guide-tool-card:hover,
.guide-link-card:hover,
.guides-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 40px rgba(15, 23, 42, .1)
}

.home-guide-icon,
.guide-tool-icon,
.guides-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.18rem;
  color: #1d4ed8;
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(124, 58, 237, .10));
  border: 1px solid #dbe7fb;
  margin-bottom: 14px
}

.home-guide-card h3,
.guide-tool-card h3,
.guide-link-card h3,
.guides-card h3 {
  margin: 0 0 8px;
  font-size: 1.14rem;
  line-height: 1.35
}

.home-guide-card p,
.guide-tool-card p,
.guide-link-card p,
.guides-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.75
}

.home-guide-meta,
.guide-tool-meta,
.guides-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px
}

.home-guide-meta span,
.guide-tool-meta span,
.guides-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #dbe7fb;
  color: #1d4ed8;
  font-size: .86rem;
  font-weight: 700
}

.guide-tool-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #1d4ed8;
  font-weight: 800
}

.guides-shell {
  width: min(1180px, calc(100% - 24px));
  margin: 24px auto 40px
}

.guides-hero,
.guide-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 56%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 20px 46px rgba(37, 99, 235, .18)
}

.guides-hero::before,
.guide-hero::before,
.guides-hero::after,
.guide-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  pointer-events: none
}

.guides-hero::before,
.guide-hero::before {
  width: 230px;
  height: 230px;
  top: -80px;
  right: -60px
}

.guides-hero::after,
.guide-hero::after {
  width: 170px;
  height: 170px;
  left: -50px;
  bottom: -55px
}

.guides-hero h1,
.guide-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08
}

.guides-hero p,
.guide-hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 920px;
  color: rgba(255, 255, 255, .95);
  line-height: 1.82
}

.guide-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  position: relative;
  z-index: 1
}

.guide-badge-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .2);
  font-size: .9rem;
  font-weight: 700
}

.guides-section,
.guide-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .06);
  padding: 22px;
  margin-top: 18px
}

.guides-section h2,
.guide-section h2 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  color: #111827
}

.guides-section>p,
.guide-section>p {
  margin: 0;
  color: #64748b;
  line-height: 1.78
}

.guide-article {
  display: grid;
  gap: 16px;
  margin-top: 18px
}

.guide-article-card {
  background: linear-gradient(180deg, #fff, #fbfdff);
  border: 1px solid #dfe7f4;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, .05)
}

.guide-article-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem
}

.guide-article-card p {
  margin: 0;
  color: #475569;
  line-height: 1.82
}

.guide-article-card p+p {
  margin-top: 12px
}

.guide-faq-list {
  display: grid;
  gap: 14px;
  margin-top: 18px
}

.guide-faq-item {
  border: 1px solid #dbe7fb;
  background: #fbfdff;
  border-radius: 20px;
  padding: 18px
}

.guide-faq-item p {
  margin: 0;
  color: #475569;
  line-height: 1.75
}

.note-box,
.pt-note-box {
  margin-top: 16px;
  background: #eef4ff;
  border: 1px solid #d6e3ff;
  color: #2347b1;
  border-radius: 18px;
  padding: 16px 18px;
  font-size: .95rem;
  line-height: 1.9
}

.note-box strong,
.pt-note-box strong {
  color: #173b9d
}

@media (max-width:980px) {

  .home-guides-grid,
  .guide-tool-grid,
  .guide-link-grid,
  .guides-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width:768px) {
  .guides-shell {
    width: min(100% - 16px, 1180px);
    margin: 18px auto 28px
  }

  .guides-hero,
  .guide-hero {
    padding: 24px 18px
  }

  .guides-section,
  .guide-section {
    padding: 18px 16px;
    border-radius: 24px
  }
}



/* ===== Tool Guide Buttons + Tool Detail Guides ===== */
.guide-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
}

.guide-primary-btn,
.guide-secondary-btn,
.tool-guide-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  transition: .2s ease;
}

.guide-primary-btn,
.tool-guide-inline-btn {
  background: linear-gradient(135deg, #1d4ed8, #4f46e5);
  color: #fff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, .18);
}

.guide-secondary-btn {
  background: #eef4ff;
  color: #1d4ed8;
  border: 1px solid #d6e3ff;
}

.guide-primary-btn:hover,
.guide-secondary-btn:hover,
.tool-guide-inline-btn:hover {
  transform: translateY(-1px);
}

.tool-guide-inline-wrap {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-guide-page-grid {
  display: grid;
  grid-template-columns: 1.25fr .95fr;
  gap: 18px;
  margin-top: 18px;
}

.tool-guide-sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.tool-guide-stat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dbe7fb;
  border-radius: 20px;
  background: #fbfdff;
}

.tool-guide-stat i {
  font-size: 1.05rem;
  color: #1d4ed8;
  margin-top: 4px;
}

.tool-guide-section p {
  margin: 0;
  color: #475569;
  line-height: 1.82;
}

.tool-guide-section p+p {
  margin-top: 12px;
}

.tool-guide-step-list,
.tool-guide-checklist {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.tool-guide-step,
.tool-guide-check {
  padding: 16px 18px;
  border: 1px solid #dbe7fb;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.tool-guide-step strong,
.tool-guide-check strong {
  color: #0f172a;
}

.tool-guide-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.tool-guide-related-card {
  display: block;
  text-decoration: none;
  color: #111827;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid #dbe7fb;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
}

.tool-guide-related-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.75;
}

.tool-guide-related-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.tool-guide-bottom-cta {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #dbe7fb;
  border-radius: 24px;
  background: linear-gradient(135deg, #eff6ff, #f8fbff);
}

.tool-guide-mini-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tool-guide-mini-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #dbe7fb;
  color: #1d4ed8;
  font-size: .85rem;
  font-weight: 700;
}

@media (max-width:980px) {

  .tool-guide-page-grid,
  .tool-guide-related-grid {
    grid-template-columns: 1fr;
  }
}

/* Contrast + footer refinement */
.home-faq-item p {
  color: #334155
}

.home-faq-item strong {
  color: #0f172a
}

footer {
  background: #0b1220;
  color: #f8fafc
}

.footer-links a,
footer p {
  color: #f8fafc
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline
}

/* =======================================================================
   PREMIUM PAGE & CARD ICON GRADIENT PATCH (Global UI/UX Upgrade)
   Properly targets both Webfont (needs clip) and SVG Mask (no clip) icons
======================================================================= */

/* 1. Webfont-based Icons (Category/Guide Pages loaded via CDN) */
.guide-tool-icon i::before,
.guide-link-card i::before,
.premium-icon i::before {
  background: linear-gradient(135deg, #2563eb, #8b5cf6, #d946ef) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: initial !important;
}

.guide-tool-card:hover .guide-tool-icon i::before {
  background: linear-gradient(135deg, #0f5fff, #7c3aed, #ec4899) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* 2. SVG Mask-based Icons (Homepage / Index loaded via fa-home-local.css) */
.home-feature-icon i::before,
.home-category-icon i::before,
.home-guide-icon i::before,
.c-icon i::before,
.tc-icon i::before,
.home-list-card h3 i::before {
  background: linear-gradient(135deg, #2563eb, #8b5cf6, #d946ef) !important;
  color: transparent !important;
  /* hide default inherited color */
}

.home-category-card:hover .home-category-icon i::before {
  background: linear-gradient(135deg, #0f5fff, #7c3aed, #ec4899) !important;
}

/* 3. Category Page Tool Card Icons — Fresh Premium Gradient (All Categories) */
.bt-icon,
.fi-icon,
.re-icon,
.ph-icon,
.jb-icon,
.pd-icon,
.iu-icon,
.so-icon,
.st-icon,
.tv-icon,
.fu-icon,
.wf-icon {
  background: linear-gradient(135deg, #eef9ff, #f0f4ff) !important;
  border: 1px solid rgba(6, 182, 212, .15) !important;
  box-shadow: 0 10px 24px rgba(6, 182, 212, .10) !important;
}

.bt-icon i,
.fi-icon i,
.re-icon i,
.ph-icon i,
.jb-icon i,
.pd-icon i,
.iu-icon i,
.so-icon i,
.st-icon i,
.tv-icon i,
.fu-icon i,
.wf-icon i {
  background: linear-gradient(135deg, #0891b2, #6366f1, #e11d48) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.bt-card:hover .bt-icon,
.fi-card:hover .fi-icon,
.re-card:hover .re-icon,
.ph-card:hover .ph-icon,
.jb-card:hover .jb-icon,
.pd-card:hover .pd-icon,
.iu-card:hover .iu-icon,
.so-card:hover .so-icon,
.st-card:hover .st-icon,
.tv-card:hover .tv-icon,
.fu-card:hover .fu-icon,
.wf-card:hover .wf-icon {
  background: linear-gradient(135deg, #e0f8ff, #eef0ff) !important;
  border-color: rgba(99, 102, 241, .22) !important;
  box-shadow: 0 14px 30px rgba(99, 102, 241, .14) !important;
}

.bt-card:hover .bt-icon i,
.fi-card:hover .fi-icon i,
.re-card:hover .re-icon i,
.ph-card:hover .ph-icon i,
.jb-card:hover .jb-icon i,
.pd-card:hover .pd-icon i,
.iu-card:hover .iu-icon i,
.so-card:hover .so-icon i,
.st-card:hover .st-icon i,
.tv-card:hover .tv-icon i,
.fu-card:hover .fu-icon i,
.wf-card:hover .wf-icon i {
  background: linear-gradient(135deg, #0e7490, #4f46e5, #be123c) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Universal Smart UI Injector Styles */
details.faq-item,
details.guide-faq-item {
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(15, 23, 42, .02);
  transition: box-shadow .3s ease;
  padding: 0 !important;
}

details.faq-item:hover,
details.guide-faq-item:hover {
  box-shadow: 0 8px 16px rgba(15, 23, 42, .05);
}

details.faq-item summary,
details.guide-faq-item summary {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
}

details.faq-item summary::-webkit-details-marker,
details.guide-faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after,
details.guide-faq-item summary::after,
.pt-read-more::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background-color: #6366f1;
  -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyLjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0ibTYgOSA2IDYgNi02Ii8+PC9zdmc+") center/contain no-repeat;
  mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyLjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0ibTYgOSA2IDYgNi02Ii8+PC9zdmc+") center/contain no-repeat;
  transition: transform .3s ease;
  flex-shrink: 0;
}

details.faq-item[open] summary::after,
details.guide-faq-item[open] summary::after,
.pt-read-more[data-open="true"]::after {
  transform: rotate(180deg);
}

details.faq-item p,
details.guide-faq-item p {
  padding: 0 20px 20px !important;
  border-top: none;
  animation: faqFade .3s ease;
}

/* Universal Read More Toggle styling */
.pt-read-more-wrapper {
  display: none;
  animation: faqFade .3s ease;
}

.pt-read-more-wrapper.expanded {
  display: block;
}

.pt-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 99px;
  color: #6366f1;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  padding: 6px 14px;
  transition: all .3s ease;
  font-family: inherit;
  line-height: 1;
  outline: none;
}

.pt-read-more:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #4f46e5;
}

.pt-read-more::after {
  background-color: currentColor;
}

/* =========================
   TOP HEADER
========================= */
body {
  padding-top: 86px;
}

.app-top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  background: transparent;
  padding: 16px 20px;
  contain: layout;
}

.header-interactive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  position: relative;
}

.header-menu-btn {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(219, 231, 251, 0.95);
  font-size: 1.1rem;
  color: #1e3a8a;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
  opacity: 1;
  transform: scale(1);
  width: 48px;
  height: 48px;
  overflow: hidden;
}

.header-logo {
  height: 48px;
  width: 48px;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 3px;
  transition: all 0.25s ease;
  flex-shrink: 0;
  opacity: 1;
  transform: scale(1);
}

.header-search-wrap {
  flex: 1;
  transition: all 0.25s ease;
  position: relative;
  z-index: 10;
}

/* Bubble Expansion Animation on Search Focus */
.header-interactive-row.search-active .header-menu-btn,
.header-interactive-row.search-active .header-logo {
  opacity: 0;
  width: 0;
  padding: 0;
  margin: 0;
  border-width: 0;
  transform: scale(0.92);
  pointer-events: none;
}

.header-interactive-row.search-active .header-search-wrap {
  flex: 1 0 100%;
}

@media (max-width: 768px) {
  .app-top-header {
    padding: 12px 16px;
  }

  .header-menu-btn,
  .header-logo {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }
}

/* =========================
   QUICK SERVICES (HORIZONTAL SCROLL)
========================= */
.quick-services-section {
  padding: 20px 16px 10px;
  background: #ffffff;
  margin: 16px 12px 24px;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.quick-services-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.quick-services-header i {
  font-size: 1.2rem;
}

.quick-services-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  margin: 0;
  font-family: 'Outfit', sans-serif;
}

.quick-services-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 4px 12px;
  margin-top: -6px;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.quick-services-scroll::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

/* Rubber Band / Bounce Effect */
@keyframes rubberBandRight {
  0% {
    transform: translateX(0);
  }

  40% {
    transform: translateX(-12px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes rubberBandLeft {
  0% {
    transform: translateX(0);
  }

  40% {
    transform: translateX(12px);
  }

  100% {
    transform: translateX(0);
  }
}

.quick-services-scroll.bounce-right .quick-service-item {
  animation: rubberBandRight 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.quick-services-scroll.bounce-left .quick-service-item {
  animation: rubberBandLeft 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.quick-services-scroll {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Performance optimizations for high FPS */
  will-change: scroll-position;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}


/* Enable styled scrollbar for PC devices (devices with fine pointer like mouse) */
@media (pointer: fine) {
  .quick-services-scroll {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }

  .quick-services-scroll::-webkit-scrollbar {
    display: block;
    height: 6px;
  }

  .quick-services-scroll::-webkit-scrollbar-track {
    background: transparent;
  }

  .quick-services-scroll::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
  }

  .quick-services-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
  }
}

.quick-service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  width: 72px;
}

.qs-icon-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Favorite Star Button */
.fav-star-btn {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  color: #e2e8f0;
  /* Default white/light grey star */
  border: none;
  padding: 0;
}

.fav-star-btn i {
  font-size: 10px;
  -webkit-text-stroke: 1px #94a3b8;
  /* Give it a thin outline so white star is visible */
}

.fav-star-btn.active {
  color: #fbbf24;
  /* Golden */
}

.fav-star-btn.active i {
  -webkit-text-stroke: 0;
}

/* Favorites Vertical List */
.favorites-container {
  padding: 10px 0;
}

.favorites-header-inline {
  padding: 20px 20px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.favorites-header-inline h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  margin: 0;
  font-family: 'Outfit', sans-serif;
}

.favorites-list {
  padding: 10px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fav-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.2s ease;
  position: relative;
}

.fav-item-row:active {
  transform: scale(0.97);
  background: #f8fafc;
}

.fav-icon-small {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.fav-item-info {
  flex: 1;
}

.fav-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  font-family: 'Outfit', sans-serif;
}

.fav-item-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 2px 0 0;
}

.fav-remove-action,
.fav-remove-btn-action {
  color: #fbbf24;
  font-size: 1.2rem;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.fav-remove-btn-action:active {
  transform: scale(1.2);
}

.fav-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
  color: #94a3b8;
}

.fav-empty-state i {
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fav-empty-state p {
  font-size: 1rem;
  font-weight: 600;
  max-width: 240px;
  line-height: 1.5;
}


.quick-service-item:hover .qs-icon-wrapper {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.qs-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================
   CATEGORIES PANEL
========================= */
.categories-container {
  padding: 10px 0 80px;
}

.category-section {
  padding: 20px 16px 10px;
  background: #ffffff;
  margin: 0 12px 24px;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.category-section .quick-services-header {
  padding: 0 4px 6px;
}

.category-section .quick-services-header h2 {
  font-size: 1.1rem;
}

/* =========================
   BOTTOM NAV (FLOATING PILL)
========================= */
body {
  /* Provide enough padding so content isn't hidden behind the floating bar */
  padding-bottom: 96px !important;
}

.mobile-bottom-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  width: calc(100% - 32px);
  height: 68px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  z-index: 1000;
}

/* On larger screens, limit the nav width for a cleaner look */
@media (min-width: 769px) {
  .mobile-bottom-nav {
    max-width: 480px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 480px;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  height: 54px;
  color: #64748b;
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 4px;
  /* Button reset */
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.bottom-nav-item.active {
  background: rgba(37, 99, 235, 0.16);
  color: #1d4ed8;
}

.bottom-nav-item span {
  font-size: 0.65rem;
  font-weight: 700;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  color: inherit;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-nav-item:active svg {
  transform: scale(0.85);
}

.bottom-nav-item.active svg {
  transform: scale(1.05);
}

.bottom-nav-item:hover {
  color: #2563eb;
}

/* ============================================================
   UNIVERSAL UI & NAVIGATION FIXES (PREMIUM HEADER)
   ============================================================ */

/* 1. Remove blank gap at top */
.uth-skip-link {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 2. Global Header Layout (Flexbox vs Absolute) */
html body.uth-menu-present .main-header,
html body .main-header {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 16px !important;
  min-height: 68px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(229, 231, 235, 0.9) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 3. Logo Fix (Kill absolute centering) */
html body.uth-menu-present .main-header .logo,
html body .main-header .logo {
  position: static !important;
  transform: none !important;
  left: auto !important;
  margin: 0 !important;
  flex: 1 !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #111827 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important; /* Allows shrinking */
}

/* 4. Header Nav Buttons Container */
.header-nav {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

/* 5. Premium Pill Button Design */
.nav-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 8px 18px !important;
  border-radius: 99px !important;
  background: #f0f7ff !important;
  border: 1px solid #dbeafe !important;
  color: #1d4ed8 !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.05) !important;
  font-family: inherit !important;
  text-decoration: none !important;
  line-height: 1 !important;
  margin: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.nav-pill:hover {
  background: #e0efff !important;
  border-color: #bfdbfe !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.08) !important;
}

.nav-pill:active {
  transform: translateY(0) !important;
  background: #dbeafe !important;
}

.nav-pill i {
  font-size: 1rem !important;
  margin-right: 2px !important;
}

/* 6. Burger Icon Fix */
.uth-burger {
  flex-shrink: 0 !important;
  margin-right: 4px !important;
}

/* 7. Mobile Responsiveness Optimization */
@media (max-width: 480px) {
  .main-header {
    padding: 8px 12px !important;
    gap: 8px !important;
    min-height: 60px !important;
  }
  .main-header .logo {
    font-size: 1rem !important;
    max-width: 140px !important;
  }
  .nav-pill {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    gap: 4px !important;
  }
}

/* =========================
   TRENDING TOOLS UI
========================= */
.trending-container {
  padding: 10px 16px 80px;
}

.trending-header-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.trending-header-wrap h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  font-family: 'Outfit', sans-serif;
  text-align: center;
}

.trending-filters {
  display: inline-flex;
  background: rgba(241, 245, 249, 0.8);
  border-radius: 99px;
  padding: 4px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.trend-filter {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.trend-filter.active {
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.trending-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 20px 4px 0;
}

.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border-radius: 20px;
  padding: 16px 8px;
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  width: 32%;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.podium-item:hover {
  transform: translateY(-4px);
}

.podium-rank {
  position: absolute;
  top: -12px;
  background: #f8fafc;
  border: 2px solid #ffffff;
  color: #0f172a;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.podium-rank.rank-1 {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #fff;
  width: 32px;
  height: 32px;
  top: -16px;
  font-size: 0.95rem;
  border-color: #fffbeb;
}

.podium-item.rank-1-card {
  width: 36%;
  padding-top: 24px;
  z-index: 2;
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: 0 12px 30px rgba(251, 191, 36, 0.15);
}

.podium-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.podium-item.rank-1-card .podium-icon {
  width: 52px;
  height: 52px;
  font-size: 22px;
}

.podium-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trend-indicator {
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trend-up {
  color: #10b981;
}

.trend-down {
  color: #ef4444;
}

.trend-indicator i {
  font-size: 0.65rem;
}

.trending-list-container {
  font-size: 1rem !important;
  margin-right: 2px !important;
}

/* 6. Burger Icon Fix */
.uth-burger {
  flex-shrink: 0 !important;
  margin-right: 4px !important;
}

/* 7. Mobile Responsiveness Optimization */
@media (max-width: 480px) {
  .main-header {
    padding: 8px 12px !important;
    gap: 8px !important;
    min-height: 60px !important;
  }
  .main-header .logo {
    font-size: 1rem !important;
    max-width: 140px !important;
  }
  .nav-pill {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    gap: 4px !important;
  }
}

/* =========================
   TRENDING TOOLS UI
========================= */
.trending-container {
  padding: 10px 16px 80px;
}

.trending-header-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.trending-header-wrap h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  font-family: 'Outfit', sans-serif;
  text-align: center;
}

.trending-filters {
  display: inline-flex;
  background: rgba(241, 245, 249, 0.8);
  border-radius: 99px;
  padding: 4px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.trend-filter {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.trend-filter.active {
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.trending-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 20px 4px 0;
}

.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border-radius: 20px;
  padding: 16px 8px;
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  width: 32%;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.podium-item:hover {
  transform: translateY(-4px);
}

.podium-rank {
  position: absolute;
  top: -12px;
  background: #f8fafc;
  border: 2px solid #ffffff;
  color: #0f172a;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.podium-rank.rank-1 {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #fff;
  width: 32px;
  height: 32px;
  top: -16px;
  font-size: 0.95rem;
  border-color: #fffbeb;
}

.podium-item.rank-1-card {
  width: 36%;
  padding-top: 24px;
  z-index: 2;
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: 0 12px 30px rgba(251, 191, 36, 0.15);
}

.podium-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.podium-item.rank-1-card .podium-icon {
  width: 52px;
  height: 52px;
  font-size: 22px;
}

.podium-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trend-indicator {
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trend-up {
  color: #10b981;
}

.trend-down {
  color: #ef4444;
}

.trend-indicator i {
  font-size: 0.65rem;
}

.trending-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trend-list-item {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  text-decoration: none;
  transition: all 0.2s ease;
  gap: 16px;
}

.trend-list-item:active {
  transform: scale(0.98);
}

.list-rank {
  font-weight: 800;
  color: #64748b;
  font-size: 1rem;
  width: 24px;
  text-align: center;
}

.list-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.list-info {
  flex: 1;
}

.list-title {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
  margin: 0 0 4px;
}

@keyframes trendSweepIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sweep-animate {
  animation: trendSweepIn 0.4s cubic-bezier(0.2, 1, 0.2, 1) forwards;
}

/* ===== PROMO BANNER SLIDER ===== */
.promo-banner-container {
  padding: 10px 16px 0;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.promo-slider {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.promo-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-banner-link {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  text-decoration: none;
}

.promo-banner-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 670;
  display: block;
  border-radius: 20px;
  user-select: none;
  -webkit-user-drag: none;
}

.promo-slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.promo-slider-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.promo-slider-dots .dot.active {
  background: #3b82f6;
  width: 16px;
  border-radius: 999px;
}

body.pth-dark .promo-slider {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.pth-dark .promo-slider-dots .dot {
  background: #475569;
}

body.pth-dark .promo-slider-dots .dot.active {
  background: #60a5fa;
}

/* ======================================================
   MOBILE PERFORMANCE OVERRIDES (max-width: 480px)
   Desktop pe koi change nahi — sirf mobile ke liye
====================================================== */
@media (max-width: 480px) {

  /* Body background — 3-layer radial gradient GPU-heavy hai mobile pe
     Simple linear gradient se replace karein */
  body {
    background: linear-gradient(180deg, #f5f8ff 0%, #edf3ff 100%) !important;
  }

  body.pth-dark {
    background: #020617 !important;
  }

  /* Search suggest — backdrop blur off */
  .search-suggest {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Header main — blur off (light mode) */
  .main-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(252, 252, 252, 0.97) !important;
  }

  /* Category hover effects — GPU transform disable */
  .home-category-card:hover,
  .seo-feature-card:hover {
    transform: none !important;
  }

  /* Trending tool animations — simplify */
  .trend-list-item,
  .podium-item {
    transition: none !important;
  }
}


/* --- AGGRESSIVE MOBILE GPU OPTIMIZATION --- */
@media (max-width: 480px) {
  *, *::before, *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Suspend animations when tab is hidden to save CPU */
body.is-hidden * {
  animation-play-state: paused !important;
  transition: none !important;
}
