/* Visitors — Baat-style list */
body.visitors-page {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: #111827;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.visitors-header {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.visitors-header h1 {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

.visitors-back {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #111827;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visitors-tabs {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  position: sticky;
  top: 60px;
  z-index: 19;
}

.visitors-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
  position: relative;
}

.visitors-tab.is-active {
  color: #111827;
  font-weight: 700;
}

.visitors-tab.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 72px;
  max-width: 60%;
  height: 2px;
  background: #111827;
  border-radius: 2px;
}

.visitors-anon-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  background: linear-gradient(90deg, #8b6914 0%, #c4a035 45%, #8b6914 100%);
  color: #fff;
}

.visitors-anon-banner .visitors-spy {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.visitors-anon-banner p {
  flex: 1;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.visitors-anon-banner a {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #6b4f10;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.visitors-svip-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  background: linear-gradient(90deg, #6b4f10 0%, #a67c2e 50%, #6b4f10 100%);
  color: #fff;
}

.visitors-svip-stack {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.visitors-svip-stack-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
  margin-left: -10px;
  filter: blur(3px);
}

.visitors-svip-stack-img:first-child {
  margin-left: 0;
}

.visitors-svip-stack-ph {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.visitors-svip-banner p {
  flex: 1;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.visitors-svip-viewall {
  flex-shrink: 0;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #6b4f10;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.visitors-row--blurred {
  pointer-events: none;
  user-select: none;
}

.visitors-row--blurred .visitors-avatar-wrap img {
  filter: blur(7px);
  transform: scale(1.05);
}

.visitors-row--blurred .visitors-name-row strong {
  filter: blur(5px);
  letter-spacing: 0.12em;
}

.visitors-list {
  background: #fff;
}

.visitors-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: inherit;
  background: #fff;
}

.visitors-row--clickable {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.visitors-row--clickable:active {
  background: #f9fafb;
}

.visitors-row--clickable:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: -2px;
}

.visitors-row:last-child {
  border-bottom: none;
}

.visitors-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.visitors-row img,
.visitors-row .visitors-avatar-ph {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.visitors-avatar-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 20px;
}

.visitors-meta {
  flex: 1;
  min-width: 0;
}

.visitors-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.visitors-name-row strong {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visitors-gender {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.visitors-gender--m {
  color: #3b82f6;
}

.visitors-gender--f {
  color: #ec4899;
}

.visitors-meta span {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}

.visitors-chat-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #14b8a6;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.visitors-chat-btn:active {
  opacity: 0.85;
}

.visitors-empty,
.visitors-loading {
  text-align: center;
  padding: 48px 20px;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.5;
}

.visitors-upsell {
  margin: 24px 16px;
  padding: 20px 16px;
  border-radius: 16px;
  background: linear-gradient(160deg, #2e1065, #1e1b4b);
  color: #fff;
  text-align: center;
}

.visitors-upsell h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.visitors-upsell p {
  margin: 0 0 14px;
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.45;
}

.visitors-upsell a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fde68a, #f59e0b);
  color: #1a1028;
  font-weight: 800;
  text-decoration: none;
  font-size: 13px;
}

.visitors-panel[hidden] {
  display: none !important;
}
