/* Base Body Adjustment for Fixed Header */
body {
  padding-top: 80px;
}

body.manga-reading {
  padding-top: 80px;
}

@media (max-width: 768px) {
  body,
  body.manga-reading {
    padding-top: 60px;
  }
}

.ao-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--ao-bg); /* Use theme bg by default */
  border-bottom: 1px solid var(--ao-border-light);
  height: 80px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
}

@media (max-width: 992px) {
  .ao-header {
    padding: 0 24px;
  }
}

@media (max-width: 576px) {
  .ao-header {
    padding: 0 16px;
    height: 60px;
  }
}

.ao-header--hidden {
  transform: translateY(-100%) !important;
}

/* Admin Bar Adjustments */
.admin-bar .ao-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .ao-header {
    top: 46px;
  }
}

/* Scrolled State - Glassmorphism */
.ao-header--scrolled {
  height: 64px;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .ao-header--scrolled {
  background-color: rgba(30, 30, 46, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.ao-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 40px;
}

@media (max-width: 992px) {
  .ao-header__inner {
    gap: 16px;
  }
}

/* Brand/Logo Upgrade */
.ao-header__brand {
  flex-shrink: 0;
}

.ao-header__logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: var(--ao-transition);
}

.ao-header__logo-wrapper:hover {
  transform: translateY(-1px);
}

.ao-logo-img {
  max-height: 48px; /* Safe limit for header */
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.ao-header--scrolled .ao-logo-img {
  max-height: 38px; /* Slightly smaller when scrolled */
}

.ao-header__logo-text {
  font-family: var(--ao-font-heading);
  font-size: 22px;
  font-weight: 850;
  color: var(--ao-text);
  letter-spacing: -0.7px;
  white-space: nowrap;
}

[data-theme="dark"] .ao-header__logo-text {
  color: #fff;
  text-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
}

.ao-header--scrolled .ao-header__logo-text {
  font-size: 20px;
}

/* Premium Navigation */
.ao-nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ao-nav-menu > li > a {
  position: relative;
  display: block;
  padding: 10px 20px;
  color: var(--ao-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.ao-nav-menu > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--ao-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.ao-nav-menu > li > a:hover {
  color: var(--ao-primary);
  background-color: rgba(108, 92, 231, 0.05);
}

.ao-nav-menu > li > a:hover::after,
.ao-nav-menu > li.current-menu-item > a::after {
  width: 20px;
  bottom: 6px;
}

/* Submenu Upgrade */
.ao-nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 220px;
  background-color: var(--ao-bg);
  border: 1px solid var(--ao-border);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  z-index: 100;
}

[data-theme="dark"] .ao-nav-menu .sub-menu {
  background-color: #252538;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.ao-nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Actions */
.ao-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ao-header__search-toggle,
.ao-header__theme-toggle,
.ao-header__mobile-toggle,
.ao-header__calendar,
.ao-header__notif-btn,
.ao-header__shop-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--ao-text);
  transition: all 0.3s ease;
}

.ao-header--scrolled .ao-header__search-toggle {
  background: rgba(0, 0, 0, 0.03);
}

.ao-header--scrolled .ao-header__notif-btn {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .ao-header--scrolled .ao-header__search-toggle {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .ao-header--scrolled .ao-header__notif-btn {
  background: rgba(255, 255, 255, 0.03);
}

.ao-header__search-toggle:hover,
.ao-header__theme-toggle:hover,
.ao-header__mobile-toggle:hover,
.ao-header__calendar:hover,
.ao-header__notif-btn:hover,
.ao-header__shop-btn:hover {
  background-color: var(--ao-primary) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

/* User Account Styles */
.ao-header__user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ao-header__notifications {
  position: relative;
}

.ao-header__notif-btn,
.ao-header__shop-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ao-text);
}

/* Shop Nameplate Badge */
.ao-shop-nameplate {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 120px;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
}

.ao-header__shop-btn:hover .ao-shop-nameplate,
.ao-header__shop-btn.is-active .ao-shop-nameplate {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ao-shop-nameplate__video,
.ao-shop-nameplate__static {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.ao-shop-nameplate__static {
  display: none;
}

/* Fallback: show static if video fails */
.ao-shop-nameplate__video:not([src]) + .ao-shop-nameplate__static {
  display: block;
}

.ao-header__notif-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: #ef4444;
  border: 2px solid var(--ao-bg);
  opacity: 0;
  transform: scale(0.75);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.ao-header__notif-count.is-visible {
  opacity: 1;
  transform: scale(1);
}

.ao-header__notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-width: min(360px, calc(100vw - 24px));
  border: 1px solid var(--ao-border);
  border-radius: 16px;
  background: var(--ao-bg);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  z-index: 120;
  overflow: hidden;
}

[data-theme="dark"] .ao-header__notif-dropdown {
  background: #252538;
}

.ao-header__notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ao-border-light);
}

.ao-header__notif-header strong {
  font-size: 14px;
}

.ao-header__notif-mark-all {
  border: 0;
  background: transparent;
  color: var(--ao-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ao-header__notif-list {
  max-height: 380px;
  overflow: auto;
}

.ao-header__notif-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ao-text);
  border-bottom: 1px solid var(--ao-border-light);
  transition: background 0.15s ease;
}

.ao-header__notif-item:last-child {
  border-bottom: 0;
}

.ao-header__notif-item:hover {
  background: color-mix(in srgb, var(--ao-primary) 10%, transparent);
}

.ao-header__notif-item.is-unread {
  background: color-mix(in srgb, var(--ao-primary) 14%, transparent);
}

.ao-header__notif-title {
  font-size: 13px;
  font-weight: 700;
}

.ao-header__notif-message {
  font-size: 12px;
  color: var(--ao-text-light);
}

.ao-header__notif-meta {
  font-size: 11px;
  color: var(--ao-text-muted);
}

.ao-header__notif-empty {
  padding: 16px 14px;
  font-size: 12px;
  color: var(--ao-text-light);
}

.ao-header__user-wrapper {
  position: relative;
  padding: 10px 0; /* Padding for hover bridge */
}

.ao-header__user-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--ao-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.ao-header__user-btn--avatar {
  position: relative;
}

/* Chat mention notification dot */
.ao-chat-mention-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background: #ff4757;
  border-radius: 50%;
  border: 2px solid var(--ao-bg-card, #0f1117);
  opacity: 0;
  transform: scale(0);
  transition:
    opacity 0.2s ease,
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.ao-chat-mention-dot.is-active {
  opacity: 1;
  transform: scale(1);
  animation: ao-mention-pulse 1.6s ease-in-out infinite;
}

@keyframes ao-mention-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.55);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(255, 71, 87, 0);
  }
}

.ao-header__user-btn:hover {
  background-color: var(--ao-primary) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

/* Dropdown Menu */
.ao-user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 240px;
  background: var(--ao-bg);
  border: 1px solid var(--ao-border);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  padding: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  z-index: 100;
}

[data-theme="dark"] .ao-user-dropdown {
  background: #252538;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ao-header__user-wrapper:hover .ao-user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ao-user-dropdown__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  margin: -15px -15px 15px;
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid var(--ao-border-light);
  overflow: hidden;
  min-height: 72px;
}

.ao-user-dropdown__avatar {
  width: auto;
  height: auto;
  border-radius: 0;
  overflow: visible;
  flex-shrink: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 6px; /* reserve space for level badge under avatar */
}

.ao-user-dropdown__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ao-user-dropdown__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ao-user-dropdown__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ao-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ao-user-dropdown__role {
  font-size: 11px;
  color: var(--ao-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Nameplate in header dropdown — absolute background layer */
.ao-user-dropdown__nameplate {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.ao-user-dropdown__nameplate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 15, 0.75) 0%, rgba(5, 5, 15, 0.35) 100%);
  z-index: 2;
}

.ao-user-dropdown__nameplate-video,
.ao-user-dropdown__nameplate-static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ao-user-dropdown__nameplate-video {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s;
}

.ao-user-dropdown__header:hover .ao-user-dropdown__nameplate-video {
  opacity: 1;
}

.ao-user-dropdown__nameplate-static {
  z-index: 0;
}

.ao-user-dropdown__avatar,
.ao-user-dropdown__info {
  position: relative;
  z-index: 3;
}

.ao-user-dropdown__header:has(.ao-user-dropdown__nameplate) .ao-user-dropdown__name,
.ao-user-dropdown__header:has(.ao-user-dropdown__nameplate) .ao-user-dropdown__role {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.ao-user-dropdown__menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ao-user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--ao-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.ao-user-dropdown__item svg {
  opacity: 0.6;
  transition: all 0.2s ease;
}

.ao-user-dropdown__item:hover {
  background: rgba(108, 92, 231, 0.08);
  color: var(--ao-primary);
  padding-left: 16px;
}

.ao-user-dropdown__item:hover svg {
  opacity: 1;
  transform: scale(1.1);
}

.ao-user-dropdown hr {
  margin: 8px 0;
  border: none;
  border-top: 1px solid var(--ao-border-light);
}

.ao-user-dropdown__item--logout {
  color: #ff4757;
}

.ao-user-dropdown__item--logout:hover {
  background: rgba(255, 71, 87, 0.08);
  color: #ff4757;
}

.ao-header__auth {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.ao-auth-link {
  color: var(--ao-text);
  text-decoration: none;
  transition: var(--ao-transition);
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(108, 92, 231, 0.05);
}

.ao-auth-link--login {
  color: var(--ao-primary);
}

.ao-auth-link:hover {
  background-color: var(--ao-primary);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.2);
}

.ao-auth-divider {
  color: var(--ao-text-muted);
  font-size: 11px;
  opacity: 0.3;
}

/* Theme Toggle Icons */
[data-theme="light"] .moon-icon {
  display: none;
}
[data-theme="dark"] .sun-icon {
  display: none;
}

/* Mobile Toggle */
.ao-header__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ao-text);
  transition: var(--ao-transition);
}

/* Search Overlay Upgrade */

.ao-search-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(60px, 10vh, 120px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  z-index: 2000;
}

.ao-search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ao-search-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ao-search-overlay__inner {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 16px;
  transform: translateY(-16px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ao-search-overlay.active .ao-search-overlay__inner {
  transform: translateY(0) scale(1);
}

/* Close button */
.ao-search-overlay__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
.ao-search-overlay__close:hover {
  background: #ef4444;
  color: #fff;
  transform: rotate(90deg);
}

/* Search form */
.ao-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ao-surface, #1a1d2e);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 8px 14px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(108, 92, 231, 0.2);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.ao-search-form:focus-within {
  border-color: rgba(108, 92, 231, 0.5);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 3px rgba(108, 92, 231, 0.15);
}

.ao-search-form__icon {
  color: var(--ao-text-light, #8892a4);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.ao-search-form__input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 4px;
  font-size: 18px;
  color: var(--ao-text, #e2e8f0);
  outline: none;
  font-weight: 500;
  min-width: 0;
}
.ao-search-form__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
}

.ao-search-form__clear {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.ao-search-form__clear:hover {
  background: rgba(255, 255, 255, 0.15);
}

.ao-search-form__esc {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.03em;
  cursor: pointer;
  user-select: none;
}

/* Results panel */
.ao-search-results {
  margin-top: 10px;
  background: var(--ao-surface, #1a1d2e);
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  max-height: 460px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.55);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
.ao-search-results::-webkit-scrollbar {
  width: 4px;
}
.ao-search-results::-webkit-scrollbar-track {
  background: transparent;
}
.ao-search-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.ao-search-results.active {
  display: block;
  animation: aoSearchFadeUp 0.2s ease forwards;
}

@keyframes aoSearchFadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Result items */
.ao-search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
}
.ao-search-result-item:last-child {
  border-bottom: none;
}
.ao-search-result-item:hover,
.ao-search-result-item.is-active {
  background: rgba(108, 92, 231, 0.12);
}
.ao-search-result-item.is-active .ao-search-result-item__arrow {
  opacity: 1;
  transform: translateX(0);
}

.ao-search-result-item__thumb {
  width: 44px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
}
.ao-search-result-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ao-search-result-item__no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
}

.ao-search-result-item__info {
  flex: 1;
  min-width: 0;
}
.ao-search-result-item__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ao-text, #e2e8f0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ao-search-result-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.ao-search-result-item__chapter {
  font-size: 12px;
  color: var(--ao-text-light, #8892a4);
}

.ao-search-type-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(108, 92, 231, 0.2);
  color: #a78bfa;
}

.ao-search-result-item__arrow {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.3);
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.ao-search-result-item:hover .ao-search-result-item__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Loading dots */
.ao-search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 28px;
}
.ao-search-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ao-primary, #6c5ce7);
  animation: aoSearchDot 1.2s ease-in-out infinite;
}
.ao-search-loading span:nth-child(2) {
  animation-delay: 0.2s;
}
.ao-search-loading span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes aoSearchDot {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Empty state */
.ao-search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
  gap: 12px;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
  font-size: 14px;
}
.ao-search-empty svg {
  opacity: 0.4;
}

/* Achievement Toast Notifications */
.ao-toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ao-achievement-toast {
  background: rgba(30, 30, 46, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(108, 92, 231, 0.3);
  border-radius: 18px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  transform: translateX(100px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  min-width: 300px;
  color: #fff;
}

.ao-achievement-toast.active {
  transform: translateX(0);
  opacity: 1;
}

.ao-achievement-toast__icon {
  width: 44px;
  height: 44px;
  background: var(--ao-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 15px rgba(108, 92, 231, 0.4);
}

.ao-achievement-toast__content {
  display: flex;
  flex-direction: column;
}

.ao-achievement-toast__title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ao-primary);
  margin-bottom: 2px;
}

.ao-achievement-toast__name {
  font-size: 15px;
  font-weight: 700;
}

/* Mobile Toast Adjustments */
@media (max-width: 576px) {
  .ao-toast-container {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
  .ao-achievement-toast {
    min-width: 0;
  }
}
.ao-mobile-menu {
  display: none;
  position: fixed;
  top: var(--ao-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--ao-bg);
  padding: var(--ao-spacing-lg);
  overflow-y: auto;
  z-index: 998;
}

.ao-mobile-menu.active {
  display: block;
}

.ao-mobile-nav-menu li a {
  display: block;
  padding: 12px 0;
  color: var(--ao-text);
  font-size: var(--ao-text-lg);
  font-weight: 500;
  border-bottom: 1px solid var(--ao-border-light);
}

.ao-mobile-nav-menu .sub-menu {
  padding-left: var(--ao-spacing-lg);
}

.ao-mobile-nav-menu .sub-menu a {
  font-size: var(--ao-text-base);
  font-weight: 400;
  color: var(--ao-text-light);
}
