.applications-body {
  margin: 0;
  background: #030303;
  font-family: var(--font-sans);
}

.applications-index-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow-x: clip;
  color: rgba(255, 255, 255, 0.88);
  background:
    linear-gradient(180deg, #090304 0%, #070505 18%, #050505 34%, #030303 100%);
}

.applications-index-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(230, 0, 33, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(80, 4, 12, 0.42) 0%, rgba(20, 4, 6, 0.2) 22%, rgba(3, 3, 3, 0) 38%);
}

.applications-index-page > .applications-fog {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: clamp(340px, 46vh, 520px);
  min-height: 0;
  opacity: 0.34;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 48%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 48%, transparent 100%);
}

.application-breadcrumb,
.applications-hero,
.applications-finder,
.applications-assist {
  position: relative;
  z-index: 2;
}

.applications-container,
.application-breadcrumb {
  width: min(1280px, calc(100vw - 64px));
  margin: 0 auto;
}

.application-breadcrumb {
  padding: 30px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  line-height: 1.5;
  font-weight: var(--fw-light);
}

.application-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.application-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.application-breadcrumb li + li::before {
  content: "/";
  color: rgba(255, 255, 255, 0.24);
}

.application-breadcrumb a {
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
}

.application-breadcrumb a:hover {
  color: var(--salang-red);
}

.applications-hero {
  padding: clamp(42px, 5.2vw, 70px) 0 clamp(24px, 3.4vw, 38px);
}

.applications-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.64fr) minmax(320px, 0.36fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.applications-hero__title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(46px, 5.3vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: rgba(255, 255, 255, 0.94);
  overflow-wrap: anywhere;
}

.applications-hero__desc {
  margin: 18px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.68);
}

.applications-search {
  display: grid;
  gap: 8px;
  align-self: center;
}

.applications-search label {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  line-height: 1.5;
  font-weight: var(--fw-light);
}

.applications-search__field {
  min-height: 46px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.applications-search:focus-within .applications-search__field {
  border-color: rgba(230, 0, 33, 0.58);
  background: rgba(255, 255, 255, 0.065);
}

.applications-search__field .material-symbols-outlined {
  color: rgba(255, 255, 255, 0.52);
  font-size: 19px;
}

.applications-search input {
  width: 100%;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: var(--fw-light);
  line-height: 1;
}

.applications-search input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.applications-search__field button,
.applications-result-bar button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  line-height: 1;
  font-weight: var(--fw-medium);
  cursor: pointer;
}

.applications-search__field button:hover,
.applications-result-bar button:hover {
  color: var(--salang-red);
}

.applications-finder {
  padding: 0 0 clamp(58px, 6vw, 90px);
  background: linear-gradient(180deg, rgba(3, 3, 3, 0.86) 0%, #030303 170px);
}

.applications-mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.applications-mode-switch button {
  position: relative;
  min-height: 40px;
  padding: 0 20px;
  border: 0;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1;
  font-weight: var(--fw-medium);
  letter-spacing: 0;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.applications-mode-switch button + button {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.applications-mode-switch button::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 1px;
  background: var(--salang-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.applications-mode-switch button:hover {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.045);
}

.applications-mode-switch button.is-active {
  color: var(--salang-red);
  background: rgba(255, 255, 255, 0.035);
}

.applications-mode-switch button.is-active::after {
  transform: scaleX(1);
}

.applications-filter-panel {
  display: grid;
  gap: 10px;
}

.applications-filter-group[hidden] {
  display: none;
}

.applications-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}

.applications-chip {
  position: relative;
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.018);
  font-size: 14px;
  line-height: 1;
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.applications-chip::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 1px;
  background: var(--salang-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.applications-chip:hover {
  color: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
}

.applications-chip.is-active {
  color: var(--salang-red);
  border-color: rgba(230, 0, 33, 0.16);
  background: rgba(230, 0, 33, 0.035);
  box-shadow: none;
}

.applications-chip.is-active::after {
  transform: scaleX(1);
}

.applications-filter-group--primary .applications-chip-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  column-gap: clamp(16px, 2.4vw, 34px);
  row-gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.applications-filter-group--primary .applications-chip {
  min-height: 38px;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 0;
  padding: 0 4px 2px;
  text-align: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.applications-filter-group--primary .applications-chip:hover {
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
}

.applications-filter-group--primary .applications-chip.is-active {
  color: var(--salang-red);
  background: transparent;
}

.applications-filter-group--primary .applications-chip::before {
  content: none;
}

.applications-filter-group--primary .applications-chip:hover::before,
.applications-filter-group--primary .applications-chip.is-active::before {
  opacity: 0;
}

.applications-chip__title {
  display: block;
  color: inherit;
  font-size: inherit;
  line-height: 1.35;
  font-weight: var(--fw-semibold);
  letter-spacing: 0;
}

.applications-filter-group--primary .applications-chip__title {
  font-size: 15px;
}

.applications-chip__desc {
  display: block;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: var(--fw-light);
  line-height: 1.55;
  letter-spacing: 0;
}

.applications-filter-group--secondary .applications-chip {
  min-height: 32px;
  padding: 0 12px;
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.014);
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.applications-filter-group--secondary .applications-chip.is-active {
  color: var(--salang-red);
  border-color: rgba(230, 0, 33, 0.2);
  background: rgba(230, 0, 33, 0.035);
}

.applications-result-bar {
  min-height: 30px;
  margin: 12px 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.48);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.applications-result-bar[hidden] {
  display: none;
}

.applications-result-bar p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: var(--fw-light);
}

.applications-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.application-card {
  display: grid;
  grid-template-rows: auto auto;
  align-self: start;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(16, 17, 18, 0.9);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.application-card:hover {
  border-color: rgba(230, 0, 33, 0.46);
  background: rgba(24, 25, 28, 0.95);
}

.application-card__media {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 8.7;
  overflow: hidden;
  background: #070707;
}

.application-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.35s ease;
}

.application-card:hover img {
  transform: scale(1.035);
}

.application-card__body {
  min-height: 0;
  padding: 12px 14px 14px;
}

.application-card h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.35;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.015em;
}

.application-card:hover h2 {
  color: #fff;
}

.application-card__summary {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.65;
  font-weight: var(--fw-light);
  letter-spacing: 0;
}

.application-card__tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.application-card__tags span {
  min-height: 22px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  line-height: 1;
  font-weight: var(--fw-light);
}

.application-card--placeholder {
  cursor: default;
  background: rgba(17, 18, 20, 0.78);
}

.application-card--placeholder:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(17, 18, 20, 0.82);
}

.application-card--placeholder:hover img {
  transform: scale(1.01);
}

.application-card--placeholder h2,
.application-card--placeholder:hover h2 {
  color: rgba(255, 255, 255, 0.74);
}

.applications-pagination {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.applications-pagination[hidden] {
  display: none;
}

.applications-pagination__pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.applications-pagination button {
  position: relative;
  min-width: 36px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  line-height: 1;
  font-weight: var(--fw-medium);
  letter-spacing: 0;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.applications-pagination button::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 1px;
  background: var(--salang-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.applications-pagination button:hover:not(:disabled) {
  color: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.026);
}

.applications-pagination button.is-active {
  color: var(--salang-red);
  border-color: rgba(230, 0, 33, 0.16);
  background: rgba(230, 0, 33, 0.035);
}

.applications-pagination button.is-active::after {
  transform: scaleX(1);
}

.applications-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.applications-pagination__status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.46);
  font-size: 13px;
  line-height: 1;
  font-weight: var(--fw-light);
}

.applications-empty {
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(17, 18, 20, 0.9);
}

.applications-empty h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 24px;
}

.applications-empty p {
  margin: 12px 0 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.56);
}

.applications-empty__actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.applications-empty .cta-secondary,
.applications-assist .cta-secondary {
  color: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.applications-assist {
  padding: clamp(64px, 6vw, 96px) 0;
  background: rgba(0, 0, 0, 0.38);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.applications-assist__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
}

.applications-assist h2 {
  margin: 0;
  max-width: 780px;
}

.applications-assist p {
  margin: 18px 0 0;
  max-width: 720px;
}

.applications-assist__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

@media (min-width: 1500px) {
  .applications-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .applications-filter-group--primary .applications-chip-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .applications-hero__inner,
  .applications-assist__inner {
    grid-template-columns: 1fr;
  }

  .applications-assist__actions {
    justify-content: flex-start;
  }

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

@media (max-width: 760px) {
  .applications-container,
  .application-breadcrumb {
    width: calc(100vw - 32px);
  }

  .application-breadcrumb {
    padding-top: 24px;
  }

  .applications-hero {
    padding: 42px 0 28px;
  }

  .applications-hero__title {
    font-size: clamp(42px, 12vw, 56px);
  }

  .applications-mode-switch {
    width: 100%;
  }

  .applications-mode-switch button {
    padding: 0 12px;
    font-size: 14px;
  }

  .applications-filter-group--primary .applications-chip-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .applications-filter-group--primary .applications-chip {
    min-height: 38px;
    padding: 0 4px 2px;
  }

  .applications-filter-group--primary .applications-chip__title {
    font-size: 15px;
  }

  .applications-filter-group--secondary .applications-chip-row {
    flex-wrap: wrap;
  }

  .applications-result-bar {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    padding-bottom: 10px;
  }

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

  .applications-pagination {
    justify-content: flex-start;
  }

  .applications-empty {
    padding: 28px 20px;
  }

  .applications-empty__actions,
  .applications-assist__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .applications-filter-group--primary .applications-chip-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .applications-chip__desc {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .application-card,
  .application-card img,
  .applications-mode-switch button,
  .applications-mode-switch button::after,
  .applications-chip,
  .applications-chip::after,
  .applications-pagination button,
  .applications-pagination button::after {
    transition: none !important;
  }
}
