.navbar {
  position: sticky;
  top: 0;
  z-index: 240;
  height: auto;
  background: #fff;
  color: #1c1917;
  border-bottom: 1px solid rgba(28, 25, 23, 0.12);
  box-shadow: 0 2px 12px rgba(28, 25, 23, 0.08);
  overflow: visible;
}

.navbar.scrolled {
  background: #fff;
  border-bottom-color: rgba(28, 25, 23, 0.12);
  box-shadow: 0 4px 18px rgba(28, 25, 23, 0.12);
}

.navbar-inner {
  width: min(1180px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-utility {
  background: #f3f4f1;
  border-bottom: 1px solid rgba(28, 25, 23, 0.08);
  color: #6b7280;
  font-size: 12px;
}

.nav-utility-inner {
  min-height: 30px;
  justify-content: space-between;
  gap: 16px;
}

.nav-utility-copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-utility-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: #0d9488;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-utility-links {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.nav-utility a {
  color: #4b5563;
  font-weight: 600;
}

.nav-main-row {
  background: #fff;
  overflow: visible;
}

.nav-main-inner {
  min-height: 68px;
}

.nav-category-row {
  position: relative;
  z-index: 2;
  background: #0d9488;
  border-top: 1px solid rgba(13, 148, 136, 0.28);
  overflow: visible;
}

.nav-category-inner {
  min-height: 38px;
  overflow: visible;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0;
  color: #1c1917;
}

.logo-text::after {
  content: "";
  margin-left: 1px;
  color: #0d9488;
  font-size: 0.72rem;
}

.nav-search {
  display: flex;
  align-items: stretch;
  flex: 1;
  max-width: 460px;
  min-width: 220px;
  height: 38px;
  border: 2px solid #0d9488;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}

.nav-search-icon {
  display: none;
}

.nav-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0 14px;
  color: #374151;
  font: inherit;
  background: #fff;
}

.nav-search input:focus {
  outline: none;
}

.nav-search button {
  width: 42px;
  border: 0;
  background: #0d9488;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-search svg {
  width: 18px;
  height: 18px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.btn-primary-sm,
.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
}

.btn-primary-sm {
  border: 0;
  color: #fff;
  background: #0d9488;
  box-shadow: none;
}

.btn-outline-sm {
  border: 0;
  color: #fff;
  background: #0d9488;
}

.btn-primary-sm:hover,
.btn-outline-sm:hover {
  transform: translateY(-1px);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #64748b;
  cursor: pointer;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: #f1f5f9;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.active {
  background: #0d9488;
  color: #fff;
}

.hidden {
  display: none !important;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-user-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 5px 8px 5px 5px;
  border-radius: 10px;
  border: 1px solid rgba(28, 25, 23, 0.08);
  background: rgba(28, 25, 23, 0.04);
  color: #1f2937;
}

.nav-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0d9488, #d97706);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
}

.nav-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-user-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}

.nav-logout {
  min-height: auto;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(28, 25, 23, 0.08);
  background: transparent;
  color: #a8a29e;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 2px;
  overflow: visible;
}

.nav-links > a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
}

.nav-links > a:hover,
.nav-links > a.active {
  color: #fff;
  background: rgba(0, 0, 0, 0.12);
}

.nav-tools-menu {
  position: relative;
  overflow: visible;
}

.nav-tools-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}

.nav-tools-desktop {
  display: block;
}

.nav-tools-mobile {
  display: none;
}

.nav-tools-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
}

.nav-tools-trigger svg {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}

.nav-tools-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-tools-menu.is-open .nav-tools-trigger,
.nav-tools-menu.is-current .nav-tools-trigger {
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
}

.nav-tools-menu.is-open .nav-tools-trigger svg {
  transform: rotate(180deg);
}

.nav-tools-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 260;
  transform: translateY(8px);
  width: min(840px, calc(100vw - 48px));
  border: 1px solid rgba(28, 25, 23, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(28,25,23,0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  overflow: hidden;
}

.nav-tools-menu.is-open .nav-tools-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-tools-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(28, 25, 23, 0.08);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.04), transparent);
}

.nav-tools-panel-kicker {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0d9488;
  margin-bottom: 4px;
}

.nav-tools-panel-header p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  max-width: 400px;
}

.nav-tools-panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: #0d9488;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.nav-tools-panel-cta:hover {
  background: #0f766e;
}

.nav-tools-panel-cta svg {
  width: 14px;
  height: 14px;
}

.nav-tools-panel-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 0;
  padding: 8px 16px 16px;
}

.nav-tools-panel-col {
  padding: 12px 8px;
}

.nav-tools-panel-col--categories {
  padding-left: 20px;
  border-left: 1px solid rgba(15, 23, 42, 0.06);
}

.nav-tools-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.nav-tools-section-title svg {
  width: 14px;
  height: 14px;
  color: #0d9488;
}

.nav-tools-card-list {
  display: grid;
  gap: 4px;
  max-height: 250px;
  overflow: hidden;
  overflow-y: auto;
}

.nav-tool-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-tool-card:hover {
  background: rgba(28, 25, 23, 0.04);
  transform: translateX(2px);
}

.nav-tool-card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #f4fbf2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nav-tool-card-icon svg {
  width: 20px;
  height: 20px;
  color: #0d9488;
}

.nav-tool-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-tool-card-text {
  min-width: 0;
}

.nav-tool-card-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-tool-card-text small {
  display: block;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nav-tools-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.nav-tools-category-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-tools-category-card:hover {
  background: rgba(28, 25, 23, 0.04);
  color: #2f8a43;
}

.nav-tools-category-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #2f8a43;
  flex-shrink: 0;
  opacity: 0.6;
}

.nav-tools-category-card:hover .nav-tools-category-dot {
  opacity: 1;
}

.footer {
  background: #f5f2ed;
  border-top: 1px solid rgba(28, 25, 23, 0.08);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 48px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: #78716c;
  line-height: 1.65;
  max-width: 42ch;
  margin-top: 12px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a8a29e;
  margin: 0 0 4px;
}

.footer-col a {
  font-size: 0.88rem;
  color: #78716c;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #1c1917;
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  border-top: 1px solid rgba(28, 25, 23, 0.08);
  font-size: 0.82rem;
  color: #a8a29e;
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(28, 25, 23, 0.12);
  border-radius: 14px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hamburger span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #1f2937;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1080px) {
  .nav-utility-inner,
  .nav-main-inner,
  .nav-category-inner {
    width: min(1180px, calc(100vw - 24px));
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .nav-cta .lang-switch,
  .nav-cta .theme-toggle {
    display: none;
  }
}

@media (max-width: 920px) {
  .nav-main-inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .hamburger {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0;
  }

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

  .nav-links > a,
  .nav-tools-trigger,
  .nav-tools-mobile summary {
    min-height: 44px;
    padding: 0 14px;
    justify-content: space-between;
  }

  .nav-tools-desktop {
    display: none;
  }

  .nav-tools-mobile {
    display: block;
    width: 100%;
    color: #1f2937;
    border: 1px solid rgba(28, 25, 23, 0.08);
    border-radius: 8px;
    background: #f8faf8;
    margin: 8px 0 2px;
  }

  .nav-tools-mobile summary {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    list-style: none;
    cursor: pointer;
    color: #1f2937;
    border-radius: 0;
  }

  .nav-tools-mobile summary::-webkit-details-marker {
    display: none;
  }

  .nav-tools-mobile-panel {
    display: grid;
    gap: 14px;
    padding: 4px 14px 16px;
  }

  .nav-tools-mobile-group {
    display: grid;
    gap: 6px;
  }

  .nav-tools-mobile-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7280;
    padding: 0 4px;
  }

  .nav-tools-mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    color: #1f2937;
    text-decoration: none;
    transition: background 0.15s ease;
    border: 1px solid rgba(28, 25, 23, 0.08);
  }

  .nav-tools-mobile-link:hover,
  .nav-tools-mobile-link.is-primary {
    background: #f4fbf2;
  }

  .nav-tools-mobile-link-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #f4fbf2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .nav-tools-mobile-link-icon svg {
    width: 18px;
    height: 18px;
    color: #0d9488;
  }

  .nav-tools-mobile-link-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .nav-tools-mobile-link-text {
    min-width: 0;
  }

  .nav-tools-mobile-link-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
  }

  .nav-tools-mobile-link-text span {
    display: block;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    margin-top: 2px;
  }

  .nav-tools-mobile-link-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-left: auto;
    color: #6b7280;
  }

  .nav-utility-links {
    display: none;
  }

  .nav-cta {
    margin-left: auto;
  }

  .footer-inner {
    padding: 40px 16px 28px;
  }

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

  .footer-bottom {
    padding: 14px 16px;
  }
}

@media (max-width: 640px) {
  .nav-utility-inner {
    justify-content: center;
    text-align: center;
  }

  .nav-utility-copy {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-cta .btn-primary-sm,
  .nav-user-name {
    display: none;
  }

  .nav-search {
    min-width: 0;
  }
}
