/*
Theme Name: Rapid UI
Theme URI: https://rapid-ui.in
Author: Northwind Studio
Description: Fast, ad-ready theme for the Rapid UI tools site. Works with the "Rapid UI Tools" plugin.
Version: 2.0.4
Requires at least: 6.3
Requires PHP: 7.4
License: Proprietary
Text Domain: rapid-ui
*/

/* ─── Design tokens ──────────────────────────────────────── */
:root {
  /* Brand */
  --ru-brand:        #2563EB;
  --ru-brand-dark:   #1d4ed8;
  --ru-brand-light:  #dbeafe;
  --ru-cyan:         #06B6D4;
  --ru-cyan-light:   #cffafe;

  /* Surface */
  --ru-deep:    #0A0F1E;
  --ru-header:  #0d1526;
  --ru-surface: #ffffff;
  --ru-page:    #f0f4ff;
  --ru-soft:    #f1f5f9;
  --ru-card:    #ffffff;

  /* Text */
  --ru-text:   #0f172a;
  --ru-muted:  #64748b;
  --ru-subtle: #94a3b8;

  /* Border */
  --ru-border:  #e2e8f0;
  --ru-border2: #cbd5e1;

  /* Feedback */
  --ru-error: #dc2626;
  --ru-ok:    #16a34a;

  /* Shape */
  --ru-radius:  10px;
  --ru-radius2: 16px;

  /* Type */
  --ru-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ─── Reset & base ────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ru-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ru-text);
  background: var(--ru-page);
}

img { max-width: 100%; height: auto; }

a {
  color: var(--ru-brand);
  transition: color 0.15s;
}
a:hover { color: var(--ru-brand-dark); }

h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--ru-text);
  margin-top: 0;
}

p { margin-top: 0; }

/* ─── Layout helpers ──────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow  { max-width: 680px; }
.center  { text-align: center; }
.muted   { color: var(--ru-muted); }

/* ─── Accessibility ───────────────────────────────────────── */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: -999px; top: 8px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--ru-brand);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { left: 8px; }
:focus-visible {
  outline: 2px solid var(--ru-brand);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ─── Buttons ─────────────────────────────────────────────── */
.button, .btn, .search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  border: 0;
  border-radius: var(--ru-radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.button, .btn--primary {
  background: var(--ru-brand);
  color: #fff;
}
.button:hover, .btn--primary:hover {
  background: var(--ru-brand-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.btn--dark   { background: var(--ru-deep); color: #fff; }
.btn--dark:hover { background: #1a2340; color: #fff; }
.btn--ghost  {
  background: var(--ru-surface);
  border: 1.5px solid var(--ru-border2);
  color: var(--ru-text);
}
.btn--ghost:hover { border-color: var(--ru-brand); color: var(--ru-brand); }
.btn--block  { width: 100%; }
.btn--sm     { padding: 7px 14px; font-size: 13px; }

/* ─── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ru-deep);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 82px;
  padding: 10px 0;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand img {
  display: block;
  height: 46px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.brand:hover img {
  transform: scale(1.02);
}
.brand__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: auto;
  height: 48px;
}
.brand__icon img,
.brand__icon svg {
  display: block;
  height: 48px;
  width: auto;
  object-fit: contain;
}
.brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  height: 48px;
  box-sizing: border-box;
}
.brand__name {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}
.brand__accent {
  color: #38BDF8;
}
.brand__tagline {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #38BDF8;
  white-space: nowrap;
}
.brand__logo { max-height: 48px; width: auto; }

@media (max-width: 480px) {
  .site-header__inner { min-height: 68px; padding: 6px 0; }
  .brand__icon, .brand__icon img, .brand__icon svg { height: 38px; width: auto; }
  .brand__text { height: 38px; gap: 2px; }
  .brand__name { font-size: 22px; }
  .brand__tagline { font-size: 9.5px; letter-spacing: 0.08em; }
}

/* Nav */
.nav { margin-left: auto; }
.nav__list, .nav ul {
  display: flex;
  gap: 2px;
  margin: 0; padding: 0;
  list-style: none;
}
.nav a {
  display: block;
  white-space: nowrap;
  padding: 7px 11px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover,
.nav .current-menu-item > a {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 6px 10px;
  font-size: 20px;
  color: #fff;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  cursor: pointer;
}

/* Header auth */
.header-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header-auth__link {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.header-auth__link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.header-auth__cta {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--ru-radius);
  background: var(--ru-brand);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s, box-shadow 0.15s;
}
.header-auth__cta:hover {
  color: #fff;
  background: var(--ru-brand-dark);
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}
.header-auth__cta--upgrade {
  background: #f59e0b;
  color: #1a0f00;
}
.header-auth__cta--upgrade:hover {
  background: #d97706;
  color: #1a0f00;
  box-shadow: 0 4px 12px rgba(245,158,11,0.4);
}
.header-auth__badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(6,182,212,0.15);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .header-auth__link { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 60px;
    padding: 10px 24px 18px;
    background: var(--ru-deep);
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .nav.is-open { display: block; }
  .nav__list, .nav ul { flex-direction: column; }
}

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 64px 0 52px;
  background: var(--ru-deep);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37,99,235,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 90% 80%, rgba(6,182,212,0.10) 0%, transparent 60%);
  color: #fff;
  text-align: center;
}
.hero__kicker {
  display: inline-block;
  margin-bottom: 20px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,0.45);
  background: rgba(37,99,235,0.12);
  color: #93c5fd;
  font-size: 13px;
  font-weight: 600;
}
.hero__title {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.hero__title .count {
  color: #FFFFFF;
}
.hero__lead {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 17px;
  color: rgba(255,255,255,0.62);
  line-height: 1.6;
}

/* Search bar */
.tool-search {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.tool-search input {
  width: 100%;
  min-height: 54px;
  padding: 14px 52px 14px 20px;
  font: inherit;
  font-size: 15px;
  color: var(--ru-text);
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--ru-radius2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.05);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tool-search input:focus {
  outline: none;
  border-color: var(--ru-brand);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 4px rgba(37,99,235,0.15);
}
.tool-search input::placeholder { color: #94a3b8; }
.tool-search__empty { color: rgba(255,255,255,0.5); font-size: 14px; margin-top: 12px; }

/* ─── Category sections ───────────────────────────────────── */
.cat-section { padding: 48px 0 0; }
.cat-section:last-of-type { padding-bottom: 56px; }

.cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--ru-border);
}
.cat-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--ru-text);
}
.cat-header__link {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ru-brand);
  white-space: nowrap;
}
.cat-header__link:hover { color: var(--ru-brand-dark); }

/* Legacy classes (homepage still uses cat-block) */
.cat-block { margin: 40px 0; }
.cat-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--ru-border);
}
.cat-block__head h2 { margin: 0; font-size: 20px; font-weight: 800; }
.cat-block__head a { font-weight: 700; font-size: 13px; text-decoration: none; }

/* ─── Tool grid & cards ───────────────────────────────────── */
.tool-grid, .post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.tool-card, .post-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  color: var(--ru-text);
  background: var(--ru-card);
  border: 1.5px solid var(--ru-border);
  border-radius: var(--ru-radius);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.tool-card:hover, .post-card:hover {
  color: var(--ru-text);
  border-color: var(--ru-brand);
  box-shadow: 0 4px 16px rgba(37,99,235,0.08);
  transform: translateY(-1px);
}
.tool-card[hidden], .cat-block[hidden] { display: none; }

.tool-card__name, .post-card__title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ru-text);
  line-height: 1.3;
}
.tool-card__desc {
  font-size: 13px;
  color: var(--ru-muted);
  line-height: 1.4;
}

.notice {
  margin: 24px 0;
  padding: 14px 18px;
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: var(--ru-radius);
  font-size: 14px;
}

/* ─── Tool page ───────────────────────────────────────────── */
.tool-layout {
  display: grid;
  gap: 28px;
  padding-top: 24px;
  padding-bottom: 48px;
}
.tool-layout.has-sidebar {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1080px) {
  .tool-layout.has-sidebar {
    grid-template-columns: minmax(0, 1fr) 288px;
  }
  .tool-aside {
    position: sticky;
    top: 80px;
    align-self: start;
  }
}
.tool-layout:not(.has-sidebar) .tool-aside { display: none; }

.tool-head {
  margin-bottom: 8px;
}
.tool-head h1 {
  margin: 6px 0 6px;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.tool-head__lead {
  margin: 0 0 20px;
  font-size: 16px;
  color: var(--ru-muted);
}

/* ─── Breadcrumbs ─────────────────────────────────────────── */
.crumbs { margin: 0 0 4px; }
.page-head .crumbs, .crumbs + .page-head { margin-top: 0; }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ru-muted);
}
.crumbs li + li::before {
  content: "/";
  margin-right: 4px;
  opacity: 0.5;
}
.crumbs a { color: var(--ru-muted); }
.crumbs a:hover { color: var(--ru-brand); }

/* ─── Content / entry ─────────────────────────────────────── */
.page-head {
  padding: 28px 0 8px;
}
.page-head h1 {
  margin: 4px 0 8px;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.entry {
  font-size: 16px;
  background: var(--ru-surface);
  border: 1.5px solid var(--ru-border);
  border-radius: var(--ru-radius2);
  padding: 4px 28px 24px;
}
.entry:empty { display: none; }
.entry h2 { margin-top: 32px; }
.entry h3 { margin-top: 24px; }
.entry__image img { border-radius: var(--ru-radius); }

/* ─── Related tools ───────────────────────────────────────── */
.related { margin-top: 40px; }
.related h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--ru-border);
}

/* ─── Widget / sidebar ────────────────────────────────────── */
.widget {
  margin-bottom: 16px;
  padding: 16px;
  background: var(--ru-surface);
  border: 1.5px solid var(--ru-border);
  border-radius: var(--ru-radius2);
}
.widget__title {
  margin-top: 0;
  font-size: 15px;
  font-weight: 800;
}

/* ─── Blog ────────────────────────────────────────────────── */
.post-grid .post-card { gap: 6px; }
.post-card__title { font-size: 15px; }

.blog-archive, .blog-single { padding: 40px 0 72px; }
.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}
.blog-cat {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--ru-border);
  background: var(--ru-surface);
  color: var(--ru-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s;
}
.blog-cat:hover { border-color: var(--ru-brand); color: var(--ru-brand); }

.post-list .post-row {
  padding: 18px 0;
  border-bottom: 1.5px solid var(--ru-border);
}
.post-row h2 { margin: 0 0 4px; font-size: 20px; }
.post-row h2 a { text-decoration: none; }

.share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 24px 0 40px;
  font-weight: 600;
}
.share a {
  padding: 6px 14px;
  font-size: 13px;
  background: var(--ru-soft);
  border: 1.5px solid var(--ru-border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ru-text);
  transition: border-color 0.15s, color 0.15s;
}
.share a:hover { border-color: var(--ru-brand); color: var(--ru-brand); }

/* ─── Search / 404 ────────────────────────────────────────── */
.big-404 {
  margin: 40px 0 0;
  font-size: 96px;
  font-weight: 800;
  color: var(--ru-brand);
  letter-spacing: -0.04em;
  line-height: 1;
}
.search-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0;
}
.search-field {
  min-height: 44px;
  padding: 8px 16px;
  font: inherit;
  border: 1.5px solid var(--ru-border);
  border-radius: var(--ru-radius);
  transition: border-color 0.15s;
}
.search-field:focus { outline: none; border-color: var(--ru-brand); }
.nav-links { display: flex; gap: 8px; margin: 24px 0; }
.page-numbers {
  padding: 6px 12px;
  border: 1.5px solid var(--ru-border);
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ru-text);
}
.page-numbers.current {
  color: #fff;
  background: var(--ru-brand);
  border-color: var(--ru-brand);
}

/* ─── Footer ──────────────────────────────────────────────── */
/* ─── Modern 4-Column Footer ────────────────────────────────── */
.site-footer {
  margin-top: 64px;
  padding: 56px 0 32px;
  color: #94A3B8;
  background: #070B14;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1.3fr 1.3fr 1.1fr;
  gap: 36px 44px;
  align-items: start;
}
.site-footer__about {
  max-width: 340px;
}
.site-footer__tagline {
  font-size: 13.5px;
  line-height: 1.6;
  color: #94A3B8;
  margin: 0 0 14px;
}
.site-footer__title {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #F8FAFC;
  text-transform: uppercase;
}
.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__list a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.4;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
}
.site-footer__list a:hover {
  color: #38BDF8;
  transform: translateX(2px);
}
.site-footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #64748B;
}
.site-footer__bottom a {
  color: #94A3B8;
  text-decoration: none;
}
.site-footer__bottom a:hover {
  color: #38BDF8;
}
.site-footer__bottom strong {
  color: #E2E8F0;
  font-weight: 600;
}
@media (max-width: 960px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 560px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* --- Pro CTA Banner on Homepage --- */
.pro-cta-banner {
  background: linear-gradient(135deg, #0b1329 0%, #172554 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 18px;
  padding: 44px 32px;
  text-align: center;
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.6);
  position: relative;
  overflow: hidden;
}
.pro-cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 250px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.pro-cta-banner h2 {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin: 12px 0 10px;
  letter-spacing: -0.02em;
}
.pro-cta-banner p {
  color: #94a3b8;
  font-size: 15px;
}

/* --- Horizontal Blog Cards on Homepage --- */
.blog-horizontal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.blog-card-h {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 22px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.blog-card-h:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.4);
}
.blog-card-h h3 {
  transition: color 0.15s ease;
}
.blog-card-h:hover h3 {
  color: #38bdf8 !important;
}

/* --- Currency Switcher Buttons --- */
.currency-toggle-btn:hover {
  filter: brightness(1.15);
}

/* ─── Global Header Tool Search & Dropdown ───────────────────────── */
.header-search-wrap {
  position: relative;
  margin-left: auto;
  max-width: 320px;
  width: 100%;
}
.header-search-form {
  position: relative;
  display: flex;
  align-items: center;
}
.header-search-icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
  color: #64748b;
  pointer-events: none;
}
.header-search-input {
  width: 100%;
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #f8fafc;
  padding: 8px 65px 8px 36px;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}
.header-search-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
  background: #0f172a;
}
.header-search-badge {
  position: absolute;
  right: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  pointer-events: none;
  letter-spacing: 0.04em;
}
.header-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 320px;
  background: #0b1120;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 100;
  overflow: hidden;
}
.header-search-dropdown[hidden] {
  display: none !important;
}
.header-search-results {
  max-height: 340px;
  overflow-y: auto;
  padding: 6px;
}
.header-search-results::-webkit-scrollbar {
  width: 4px;
}
.header-search-results::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
.header-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.header-search-item:hover,
.header-search-item.is-selected {
  background: #1e293b;
  color: #38bdf8;
}
.header-search-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-search-item-icon {
  font-size: 15px;
  flex-shrink: 0;
}
.header-search-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-search-item-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.header-search-empty {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}
.header-search-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: #64748b;
}
.header-search-footer kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 10px;
  color: #cbd5e1;
}

@media (max-width: 900px) {
  .header-search-wrap {
    order: 3;
    max-width: 100%;
    margin: 8px 0 0;
    width: 100%;
  }
}
