/* ── manaAI pastki dock + yordam modal ──
   Qorong'u temaga mos, mobilга moslashgan (tap), desktopda hover-grow. */

.mana-dock {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 7px;
  background: rgba(24, 24, 27, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid #2a2a30;
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 1000;
  max-width: calc(100vw - 20px);
  animation: manaDockIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
@keyframes manaDockIn {
  from { opacity: 0; transform: translate(-50%, 24px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.mana-dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 58px;
  height: 54px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 15px;
  color: #71717a;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease, color 0.15s ease;
}
.mana-dock-item svg { width: 21px; height: 21px; }
.mana-dock-label { font-size: 9.5px; font-weight: 600; letter-spacing: 0.1px; white-space: nowrap; }

.mana-dock-item.active { color: #fafafa; background: rgba(255, 255, 255, 0.07); }
.mana-dock-ind {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fafafa;
  opacity: 0;
  transform: translateX(-50%) scale(0);
  transition: opacity 0.2s, transform 0.2s;
}
.mana-dock-item.active .mana-dock-ind { opacity: 1; transform: translateX(-50%) scale(1); }

.mana-dock-item:active { transform: scale(0.88); }
@media (hover: hover) {
  .mana-dock-item:hover {
    color: #fafafa;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px) scale(1.08);
  }
}

/* Kontent dock ostida qolmasligi uchun bo'sh joy */
.mana-dock-spacer { height: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* ── Yordam modal ── */
.mana-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.mana-modal-overlay.open { opacity: 1; pointer-events: auto; }

.mana-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 18px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.mana-modal-overlay.open .mana-modal { transform: translateY(0) scale(1); }

.mana-modal-emoji { font-size: 2rem; margin-bottom: 0.5rem; }
.mana-modal-title { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.mana-modal-list { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.mana-modal-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: #d4d4d8;
  line-height: 1.5;
}
.mana-modal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}
.mana-modal-list b { color: #fff; font-weight: 600; }

.mana-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  color: #71717a;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.mana-modal-close:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.mana-modal-ok {
  width: 100%;
  padding: 0.7rem;
  border: none;
  border-radius: 10px;
  background: #fafafa;
  color: #09090b;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.mana-modal-ok:active { opacity: 0.8; }
