.loading-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  z-index: 1060;
  padding: 2rem;
}

.loading-overlay--active {
  display: flex;
}

.loading-overlay__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.loading-overlay__spinner {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0.35rem solid rgba(90, 55, 140, 0.2);
  border-top-color: #5a378c;
  animation: loading-overlay-spin 0.8s linear infinite;
}

.loading-overlay__text {
  font-weight: 600;
  color: #2f1b4b;
  letter-spacing: 0.04em;
}

@media (max-width: 575.98px) {
  .loading-overlay {
    padding: 1.5rem;
  }

  .loading-overlay__spinner {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@keyframes loading-overlay-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
.mobile-footer {
    position: fixed;
    inset: auto 0 0;
    z-index: 1000;
    display: none;
    background-color: rgba(255, 255, 255, 0.85);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mobile-footer--scrolled {
    background-color: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 -12px 24px rgba(15, 23, 42, 0.12);
}

.mobile-footer__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    min-height: 3.5rem;
    padding: 0.75rem 1.25rem calc(env(safe-area-inset-bottom) + 0.75rem);
}

.mobile-footer__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex: 1;
    padding: 0.5rem;
    border: 0;
    border-radius: 0.75rem;
    background-color: transparent;
    color: #4a5568;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
}

.mobile-footer__action:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(90, 55, 140, 0.2);
}

.mobile-footer__action:focus-visible {
    outline: 2px solid #5a378c;
    outline-offset: 2px;
}

.mobile-footer__action-icon {
    font-size: 1.25rem;
}

.mobile-footer__action-label {
    color: inherit;
}

.mobile-footer__action[aria-expanded="true"] {
    background-color: rgba(90, 55, 140, 0.08);
    color: #3c366b;
}

@media (max-width: 767.98px) {
    .mobile-footer {
        display: block;
    }

    .main-content {
        padding-bottom: calc(4.75rem + env(safe-area-inset-bottom)) !important;
    }
}
.mobile-sheet {
    position: fixed;
    inset: 0;
    z-index: 1250;
    visibility: hidden;
    pointer-events: none;
}

.mobile-sheet--visible {
    visibility: visible;
    pointer-events: auto;
}

.mobile-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-sheet--visible .mobile-sheet__backdrop {
    opacity: 1;
    pointer-events: auto;
}

.mobile-sheet__dialog {
    position: absolute;
    inset-inline: 0;
    bottom: calc(env(safe-area-inset-bottom) + 5.75rem);
    padding-inline: 1rem;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.mobile-sheet--visible .mobile-sheet__dialog {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-sheet__panel {
    width: min(640px, 100%);
    max-height: calc(100vh - 7rem);
    background-color: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.28);
    overflow-y: auto;
    padding: 1.5rem 1.25rem;
}

.mobile-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.mobile-sheet__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.mobile-sheet__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    background-color: #edf2f7;
    color: #1f2937;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.mobile-sheet__close:hover,
.mobile-sheet__close:focus-visible {
    background-color: #e2e8f0;
    outline: none;
}

.mobile-sheet__body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-sheet__group {
    display: flex;
    flex-direction: column;
}

.mobile-sheet__section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6c757d;
    margin: 0 0 0.75rem;
}

.mobile-sheet__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-sheet__item {
    display: flex;
}

.mobile-sheet__link,
.mobile-sheet__button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background-color: #f8fafc;
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.mobile-sheet__button {
    cursor: pointer;
}

.mobile-sheet__link:hover,
.mobile-sheet__link:focus-visible,
.mobile-sheet__button:hover,
.mobile-sheet__button:focus-visible {
    border-color: rgba(90, 55, 140, 0.35);
    background-color: rgba(90, 55, 140, 0.08);
    color: #3c366b;
    outline: none;
}

.mobile-sheet__link {
    justify-content: space-between;
}

.mobile-sheet__link:visited {
    color: #1f2937;
}

.mobile-sheet__button {
    justify-content: flex-start;
}

.mobile-sheet__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
    background-color: #ffffff;
    color: #5a378c;
    font-size: 1rem;
}

.mobile-sheet__text {
    flex: 1;
    text-align: left;
}

.mobile-sheet__chevron {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-left: 0.75rem;
}

.mobile-sheet__toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background-color: #f8fafc;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.mobile-sheet__toggle:hover,
.mobile-sheet__toggle:focus-within {
    border-color: rgba(90, 55, 140, 0.35);
    background-color: rgba(90, 55, 140, 0.08);
}

.mobile-sheet__toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mobile-sheet__toggle-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    color: #1f2937;
    font-weight: 600;
}

.mobile-sheet__switch {
    position: relative;
    flex-shrink: 0;
    width: 2.75rem;
    height: 1.5rem;
    border-radius: 999px;
    background-color: #cbd5f5;
    transition: background-color 0.2s ease;
}

.mobile-sheet__switch::after {
    content: '';
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease;
}

.mobile-sheet__toggle-input:checked + .mobile-sheet__switch {
    background-color: #5a378c;
}

.mobile-sheet__toggle-input:checked + .mobile-sheet__switch::after {
    transform: translateX(1.25rem);
}

body.mobile-sheet-open {
    overflow: hidden;
}

@media (min-width: 768px) {
    .mobile-sheet {
        display: none;
    }
}
.page-search {
    position: fixed;
    inset: 0;
    z-index: 1200;
    visibility: hidden;
    pointer-events: none;
}

.page-search--visible {
    visibility: visible;
    pointer-events: auto;
}

.page-search__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-search--visible .page-search__backdrop {
    opacity: 1;
    pointer-events: auto;
}

.page-search__dialog {
    position: absolute;
    inset-inline: 0;
    bottom: calc(env(safe-area-inset-bottom) + 5.75rem);
    padding-inline: 1rem;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.page-search--visible .page-search__dialog {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.page-search__panel {
    background-color: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
    width: min(640px, 100%);
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    padding: 1.5rem 1.25rem;
}

.page-search__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.page-search__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.page-search__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    background-color: #edf2f7;
    color: #1f2937;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.page-search__close:hover,
.page-search__close:focus-visible {
    background-color: #e2e8f0;
    outline: none;
}

.page-search__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.page-search__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.page-search__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6c757d;
}

.page-search__control {
    position: relative;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.search-input {
    flex: 1 1 auto;
    font-size: 1rem;
    padding-block: 0.65rem;
    padding-inline: 1rem;
}

.search-input::placeholder {
    color: #adb5bd;
}

.search-input:focus {
    box-shadow: none;
}

.search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 1.25rem;
}

.suggest-box {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background-color: var(--color-surface);
    border-radius: 0.75rem;
    padding: 0.5rem;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 100%;
    z-index: 1100;
    display: none;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.suggest-box.visible {
    display: block;
}

.suggest-box div {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.suggest-box div:hover {
    background-color: #f1f3f5;
}

body.mobile-search-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .search-input {
        font-size: 0.95rem;
    }
}

@media (min-width: 768px) {
    .page-search {
        display: none;
    }
}
