@font-face {
  font-display: swap;
  font-family: "Thmanyah Sans";
  font-style: normal;
  font-weight: 300;
  src: url("https://framerusercontent.com/assets/2MgF2LENj0ar3gdEjyf3HoLd6iw.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Thmanyah Sans";
  font-style: normal;
  font-weight: 400;
  src: url("https://framerusercontent.com/assets/Ej0k3h4Mi5O7TSo2w2JaDCPRgvo.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Thmanyah Sans";
  font-style: normal;
  font-weight: 700;
  src: url("https://framerusercontent.com/assets/JUv6rms2ye2kYL3UI3O9YyExQcQ.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Thmanyah Sans";
  font-style: normal;
  font-weight: 900;
  src: url("https://framerusercontent.com/assets/ulQLGTktcl2Qq4AmD6RuVgELZKg.woff2") format("woff2");
}

:root {
  --surface: #eef4ff;
  --paper: #f9fbff;
  --ink: #081d57;
  --muted: #5c6682;
  --line: #d9e4f6;
  --accent: #18d68b;
  --accent-dark: #0ba66a;
  --brand: #173c9b;
  --brand-dark: #08246f;
  --coral: #e56a45;
  --amber: #f3b233;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--surface);
  color: var(--ink);
  font-family: "Thmanyah Sans", "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: 0;
  margin: 0;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.app-page {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 58%, #ffffff 100%);
  min-height: 100svh;
}

.app-stage {
  display: grid;
  justify-items: center;
  min-height: 100svh;
}

.mobile-app {
  background: rgba(249, 251, 255, 0.96);
  border-color: rgba(23, 60, 155, 0.12);
  border-style: solid;
  border-width: 0 1px;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
  width: min(100%, 520px);
}

.app-topbar {
  align-items: center;
  background: rgba(249, 251, 255, 0.92);
  border-bottom: 1px solid rgba(23, 60, 155, 0.1);
  backdrop-filter: blur(18px);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.8rem 0.9rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-mark {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: 0.65rem;
  min-width: 0;
  text-decoration: none;
}

.brand-symbol {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(23, 60, 155, 0.12);
  border-radius: 8px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  overflow: hidden;
  padding: 0.18rem;
  width: 42px;
}

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

.brand-mark strong,
.brand-mark small {
  display: block;
}

.brand-mark strong {
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
}

.brand-mark small {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  margin-top: 0.2rem;
  white-space: nowrap;
}

.status-pill,
.api-badge {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0.4rem 0.55rem;
  white-space: nowrap;
}

.status-pill {
  background: #fff;
}

.status-pill[data-state="success"] {
  background: rgba(24, 214, 139, 0.12);
  border-color: rgba(24, 214, 139, 0.35);
  color: var(--accent-dark);
}

.status-pill[data-state="error"] {
  background: rgba(229, 106, 69, 0.1);
  border-color: rgba(229, 106, 69, 0.3);
  color: var(--coral);
}

.ui-icon,
.metric-icon,
.state-icon,
.search-icon,
.category-icon {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.ui-icon,
.metric-icon {
  background: rgba(23, 60, 155, 0.08);
  border-radius: 6px;
  color: var(--brand);
  font-size: 0.62rem;
  font-weight: 900;
  height: 22px;
  width: 28px;
}

.category-screen,
.search-screen {
  display: grid;
  gap: 0.9rem;
  padding: 0.9rem;
}

.home-image-slider {
  aspect-ratio: 2 / 1;
  background: #fff;
  border: 1px solid rgba(23, 60, 155, 0.14);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(8, 36, 111, 0.1);
  display: flex;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.home-slide {
  color: inherit;
  flex: 0 0 100%;
  height: 100%;
  text-decoration: none;
}

.home-slide img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.main-site-button {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 60, 155, 0.16);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(8, 36, 111, 0.14);
  color: var(--brand);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  gap: 0.28rem;
  justify-content: center;
  inset-block-end: 0.42rem;
  inset-inline-start: 0.48rem;
  min-height: 28px;
  padding: 0.24rem 0.48rem;
  position: absolute;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
  z-index: 2;
}

.main-site-button:hover {
  background: #fff;
  border-color: rgba(23, 60, 155, 0.32);
  transform: translateY(-1px);
}

.main-site-button:focus-visible {
  outline: 3px solid rgba(24, 214, 139, 0.38);
  outline-offset: 2px;
}

.summary-strip {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-strip div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.24rem;
  min-height: 82px;
  padding: 0.65rem;
}

.summary-strip span:not(.metric-icon) {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.summary-strip strong {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.section-label {
  align-items: end;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.section-label strong {
  font-size: 1rem;
  font-weight: 900;
}

.section-label span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  max-width: 52%;
  text-align: end;
}

.category-photo-grid,
.sub-category-photo-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-photo-card,
.sub-category-photo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.55rem;
  text-align: start;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.category-photo-card:hover,
.sub-category-photo-card:hover {
  border-color: var(--category-accent);
  box-shadow: 0 16px 42px rgba(8, 36, 111, 0.13);
  transform: translateY(-2px);
}

.category-photo-card:focus-visible,
.home-slide:focus-visible,
.back-button:focus-visible,
.icon-button:focus-visible,
.search-box button:focus-visible,
.sub-category-photo-card:focus-visible,
.change-subcategory:focus-visible {
  outline: 3px solid rgba(24, 214, 139, 0.38);
  outline-offset: 2px;
}

.category-photo,
.sub-category-photo {
  aspect-ratio: 1.08;
  background: var(--category-soft);
  border: 1px solid rgba(23, 60, 155, 0.08);
  border-radius: 8px;
  display: grid;
  justify-items: center;
  overflow: hidden;
  position: relative;
}

.category-photo::after {
  background: var(--category-accent);
  bottom: 0.6rem;
  content: "";
  height: 5px;
  inset-inline: 0.65rem;
  opacity: 0.88;
  position: absolute;
}

.category-art,
.sub-category-photo img {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.category-icon {
  background: #fff;
  border: 1px solid rgba(23, 60, 155, 0.12);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(8, 36, 111, 0.13);
  color: var(--category-accent);
  font-size: 0.8rem;
  font-weight: 900;
  height: 40px;
  inset-block-end: 0.62rem;
  inset-inline-start: 0.62rem;
  position: absolute;
  width: 40px;
  z-index: 1;
}

.category-card-body,
.sub-category-photo-card > span:last-child {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.category-card-body strong,
.sub-category-photo-card strong {
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.25;
}

.category-card-body small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.35;
}

.category-card-body span,
.sub-category-photo-card small {
  color: var(--category-accent);
  font-size: 0.75rem;
  font-weight: 900;
  margin-top: 0.12rem;
}

.search-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.back-button,
.icon-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 900;
  gap: 0.4rem;
  min-height: 40px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.back-button {
  padding: 0.45rem 0.7rem;
}

.icon-button {
  justify-content: center;
  padding: 0;
  width: 40px;
}

.back-button:hover,
.icon-button:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.category-flow-section {
  display: grid;
  gap: 0.72rem;
}

.slider-head {
  align-items: end;
  display: flex;
  gap: 0.85rem;
  justify-content: space-between;
}

.slider-head span,
.results-head span {
  color: var(--brand);
  font-size: 0.77rem;
  font-weight: 900;
}

.slider-head h1 {
  color: var(--ink);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.12;
  margin: 0.12rem 0 0;
}

.slider-head small {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--category-accent);
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 900;
  max-width: 44%;
  overflow: hidden;
  padding: 0.34rem 0.55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.change-subcategory {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  font-weight: 900;
  gap: 0.5rem;
  justify-content: space-between;
  min-height: 42px;
  padding: 0.55rem 0.7rem;
}

.change-subcategory b {
  color: var(--category-accent);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inside-search-form {
  padding: 0;
}

.search-box {
  align-items: center;
  background: #f5f8ff;
  border: 1px solid #cbd9f2;
  border-radius: 8px;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 30px minmax(0, 1fr) 58px;
  padding: 0.45rem;
}

.search-icon {
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 900;
}

.search-box input {
  background: transparent;
  border: 0;
  color: var(--ink);
  min-height: 44px;
  min-width: 0;
  outline: 0;
  padding: 0;
}

.search-box input::placeholder {
  color: #78839f;
}

.search-box button {
  background: var(--brand);
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  min-height: 44px;
  padding: 0 0.65rem;
  transition: background-color 160ms ease;
}

.search-box button:hover {
  background: var(--brand-dark);
}

.search-box button:disabled {
  background: #7a88ac;
}

.results-area {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 58px rgba(8, 36, 111, 0.1);
  min-height: 260px;
  padding: 0.75rem;
}

.site-footer {
  padding: 0.25rem 0.9rem 1rem;
}

.visitor-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 60, 155, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(8, 36, 111, 0.06);
  display: grid;
  gap: 0.5rem;
  padding: 0.62rem;
}

.visitor-panel-head {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.72rem;
  font-weight: 900;
  gap: 0.36rem;
  justify-content: center;
}

.live-dot {
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(24, 214, 139, 0.12);
  height: 7px;
  width: 7px;
}

.visitor-stats {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.visitor-stat {
  background: #f8fbff;
  border: 1px solid rgba(23, 60, 155, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 0.18rem;
  min-height: 58px;
  padding: 0.45rem 0.5rem;
  text-align: center;
}

.visitor-stat span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.visitor-stat strong {
  color: var(--brand);
  font-size: 1rem;
  font-weight: 900;
}

.results-head,
.result-top {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.results-head strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 900;
  margin-top: 0.12rem;
}

.api-badge {
  background: rgba(24, 214, 139, 0.12);
  color: var(--accent-dark);
}

.error-box {
  background: rgba(229, 106, 69, 0.1);
  border: 1px solid rgba(229, 106, 69, 0.26);
  border-radius: 8px;
  color: #963b28;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.6;
  margin-top: 0.75rem;
  padding: 0.75rem;
}

.start-state,
.empty-state {
  align-items: center;
  border: 1px dashed #c7d4ee;
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  margin-top: 0.75rem;
  min-height: 170px;
  padding: 1rem;
  text-align: center;
}

.state-icon {
  color: var(--brand);
  font-size: 1.45rem;
  font-weight: 900;
}

.start-state strong,
.empty-state strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.start-state span,
.empty-state span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.7;
}

.loading-list,
.result-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.loading-list span {
  animation: pulse 1.2s infinite ease-in-out;
  background: linear-gradient(90deg, #edf2fb, #fff, #edf2fb);
  border-radius: 8px;
  display: block;
  height: 92px;
}

.result-card {
  background: #f9fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
}

.result-top h2 {
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.35;
  margin: 0.18rem 0 0;
}

.result-top b {
  background: rgba(243, 178, 51, 0.16);
  border: 1px solid rgba(243, 178, 51, 0.3);
  border-radius: 8px;
  color: #865700;
  flex: 0 0 auto;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.compatible-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.75rem;
}

.compatible-list span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
  padding: 0.32rem 0.52rem;
}

.match-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.45rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
}

.match-list div {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  justify-content: space-between;
}

.match-list strong {
  font-size: 0.86rem;
  font-weight: 900;
}

.match-list span,
.muted-copy {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.muted-copy {
  margin: 0.75rem 0 0;
}

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

.noscript {
  background: #fff3cd;
  border: 1px solid #f3d27a;
  color: #6b4b00;
  font-weight: 900;
  inset-inline: 1rem;
  line-height: 1.6;
  padding: 1rem;
  position: fixed;
  text-align: center;
  top: 1rem;
  z-index: 30;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.62;
  }

  50% {
    opacity: 1;
  }
}

@media (min-width: 520px) {
  .app-stage {
    padding: 2rem 1rem;
  }

  .mobile-app {
    border: 1px solid rgba(23, 60, 155, 0.12);
    border-radius: 8px;
    box-shadow: 0 28px 90px rgba(8, 36, 111, 0.16);
    min-height: auto;
  }

  .slider-head h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 380px) {
  .slider-head h1 {
    font-size: 1.65rem;
  }

  .category-screen,
  .search-screen {
    padding: 0.7rem;
  }

  .category-card-body strong,
  .sub-category-photo-card strong {
    font-size: 0.9rem;
  }

  .category-card-body span,
  .category-card-body small {
    font-size: 0.7rem;
  }

  .search-box {
    grid-template-columns: 26px minmax(0, 1fr) 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
