/* Bell + dropdown + full chat modal */

.nav-notify {
  position: relative;
}

.nav-notify__bell {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.1));
  background: var(--surface, rgba(255, 255, 255, 0.03));
  color: var(--heading, #d6b37a);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  transition: 0.2s ease;
}

.nav-notify__bell:hover {
  border-color: rgba(214, 179, 122, 0.4);
}

.nav-notify__dot {
  position: absolute;
  top: 8px;
  left: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.nav-notify__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(320px, calc(100vw - 2rem));
  border-radius: 18px;
  background: #0f162c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  z-index: 1300;
}

html[data-theme="light"] .nav-notify__dropdown {
  background: #fff;
  border-color: rgba(26, 26, 80, 0.1);
  box-shadow: 0 18px 40px rgba(26, 32, 80, 0.12);
}

.nav-notify__head {
  padding: 0.9rem 1rem;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--heading, #d6b37a);
}

html[data-theme="light"] .nav-notify__head {
  border-bottom-color: rgba(26, 26, 80, 0.08);
}

.nav-notify__list {
  max-height: 320px;
  overflow: auto;
}

.nav-notify__empty {
  padding: 1.1rem;
  color: var(--muted, #9aa6c0);
  font-size: 0.92rem;
  display: grid;
  gap: 0.55rem;
}

.nav-notify__empty a {
  color: var(--heading, #d6b37a);
  font-weight: 700;
}

.nav-notify__item {
  width: 100%;
  display: grid;
  gap: 0.25rem;
  text-align: start;
  padding: 0.95rem 1rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

html[data-theme="light"] .nav-notify__item {
  border-bottom-color: rgba(26, 26, 80, 0.06);
}

.nav-notify__item:hover {
  background: rgba(214, 179, 122, 0.1);
}

.nav-notify__item strong {
  font-size: 0.95rem;
}

.nav-notify__item span {
  color: var(--muted, #9aa6c0);
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-notify__item small {
  color: #f97316;
  font-weight: 700;
  font-size: 0.78rem;
}

/* Full chat modal */
.chat-modal[hidden] {
  display: none !important;
}

.chat-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.chat-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 16, 0.65);
  backdrop-filter: blur(6px);
}

.chat-modal__panel {
  position: relative;
  width: min(100%, 460px);
  height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: #0d1428;
  border: 1px solid rgba(214, 179, 122, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  color: #f5f7ff;
}

html[data-theme="light"] .chat-modal__panel {
  background: #fff;
  color: #1a1a4a;
  border-color: rgba(26, 26, 80, 0.1);
}

.chat-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, rgba(214, 179, 122, 0.2), rgba(20, 184, 200, 0.12));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-modal__head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.chat-modal__head p {
  margin: 0.15rem 0 0;
  color: var(--muted, #9aa6c0);
  font-size: 0.85rem;
}

.chat-modal__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}

.chat-modal__messages {
  flex: 1;
  overflow: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background:
    radial-gradient(500px 200px at 100% 0%, rgba(214, 179, 122, 0.08), transparent 50%),
    transparent;
}

.chat-bubble {
  max-width: 82%;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.chat-bubble--visitor {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-right-radius: 6px;
}

html[data-theme="light"] .chat-bubble--visitor {
  background: #f3f5fb;
  border-color: rgba(26, 26, 80, 0.06);
}

.chat-bubble--admin {
  align-self: flex-end;
  background: linear-gradient(135deg, #e7c896, #d6b37a);
  color: #1a1408;
  border-bottom-left-radius: 6px;
}

.chat-modal__composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  padding: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .chat-modal__composer {
  border-top-color: rgba(26, 26, 80, 0.08);
}

.chat-modal__composer textarea {
  resize: none;
  min-height: 48px;
  max-height: 120px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  padding: 0.75rem 0.9rem;
  font: inherit;
}

html[data-theme="light"] .chat-modal__composer textarea {
  background: #f4f6fb;
  border-color: rgba(26, 26, 80, 0.1);
}

.chat-modal__composer button {
  min-height: 48px;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0d7a8, #d6b37a);
  color: #1a1408;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-notify__dropdown {
    left: auto;
    right: 0;
  }
}
