.auth-overlay {
  display: none; position: fixed; inset: 0; z-index: 10100;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  padding: 24px 16px;
}
.auth-overlay.open { display: flex; }
.auth-modal {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--auth-modal-radius, 8px);
  width: calc(100% - 32px); max-width: 400px;
  padding: 28px 24px 24px;
  display: flex; flex-direction: column; gap: 0;
  box-shadow: var(--dropdown-shadow), 0 24px 64px rgba(0,0,0,0.25);
  position: relative;
}
.auth-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 28px; height: 28px; border-radius: var(--auth-control-radius, 10px);
  background: var(--divider); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: background 0.15s;
}
.auth-modal__close:hover { background: var(--filter-border); }
.auth-modal__close svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; display: block; }

.auth-tabs {
  display: flex; gap: 0; margin-bottom: 24px;
  border-bottom: 1px solid var(--card-border);
}
.auth-tab {
  flex: 1; padding: 10px 0; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); background: none; border: none;
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: color 0.15s, border-color 0.15s;
}
.auth-tab.active { color: #0078D4; border-bottom-color: #0078D4; }

.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-field { display: flex; flex-direction: column; gap: 5px; position: relative; }
.auth-field label { font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.auth-field input {
  width: 100%; background: var(--bg);
  border: 1px solid var(--filter-border); border-radius: var(--auth-control-radius, 10px);
  padding: 10px 12px; font-size: 14px; color: var(--text);
  font-family: inherit; outline: none;
  transition: border-color 0.18s;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.auth-field input[type='password'] {
  padding-right: 82px;
}
.auth-caps-indicator {
  position: absolute;
  right: 12px;
  top: 0;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  color: #aeb4bc;
  line-height: 0;
  opacity: 0.62;
  pointer-events: none;
}
.auth-caps-indicator.show { display: inline-flex; }
.auth-caps-indicator .auth-caps-icon {
  width: 17px;
  height: 17px;
  display: block;
  fill: currentColor;
}
.auth-field input:focus { border-color: #0078D4; }
.auth-field input:focus-visible {
  outline: none;
  box-shadow: none;
}
.auth-field input.error { border-color: #FF3B30; }
.auth-muted {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0 0 4px;
}
.auth-link-btn {
  width: 100%;
  margin-top: 4px;
  padding: 8px 12px;
  border: none;
  background: none;
  color: #0078D4;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  border-radius: var(--auth-control-radius, 8px);
  transition: background 0.15s;
}
.auth-link-btn:hover { background: var(--row-hover); }
.auth-error { font-size: 12px; color: #FF3B30; margin-top: -4px; display: none; }
.auth-error.show { display: block; }
.auth-field--captcha {
  min-height: 76px;
}
#turnstile-widget {
  width: 100%;
}
.turnstile-widget-placeholder {
  border: 1px solid var(--filter-border);
  border-radius: var(--auth-control-radius, 10px);
  min-height: 66px;
  background: var(--bg);
}

.auth-submit {
  width: 100%; height: 44px; border-radius: var(--auth-control-radius, 10px);
  background: #0078D4; color: #fff; border: none;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: opacity 0.15s; margin-top: 4px;
  font-family: inherit;
}
.auth-submit:hover { opacity: 0.88; }
.auth-submit:active { opacity: 0.75; }

.auth-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 0; color: var(--text-tertiary); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--card-border);
}

.auth-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-social-btn {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border-radius: var(--auth-control-radius, 10px);
  border: 1px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.15s;
}
.auth-social-btn:hover { opacity: 0.88; }
.auth-social-btn:active { opacity: 0.75; }
.auth-social-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.auth-social-btn .auth-social-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  pointer-events: none;
}
.auth-social-btn .auth-social-logo svg {
  display: block;
  shape-rendering: geometricPrecision;
}
.auth-social-btn .auth-social-logo.yandex svg {
  width: 24px;
  height: 24px;
}
.auth-social-btn .auth-social-logo.google svg {
  width: 20px;
  height: 20px;
}
.auth-social-btn .auth-social-logo.vk svg {
  width: 26px;
  height: 26px;
}
.auth-social-btn.yandex {
  background: #000;
  border-color: #000;
  color: #fff;
}
.auth-social-btn.yandex .auth-social-label { color: #fff; }
.auth-social-btn.google {
  background: #fff;
  border-color: #dadce0;
  color: #202124;
}
.auth-social-btn.google .auth-social-label { color: #202124; }
.auth-social-btn.vk {
  background: #0077ff;
  border-color: #0077ff;
  color: #fff;
}
.auth-social-btn.vk .auth-social-label { color: #fff; }

/* Кнопка «Аккаунт» в шапке (index, admin.html — без watchlist.css иконка не видна) */
.user-btn {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 0;
  cursor: pointer;
  background: var(--card-border);
  color: var(--text-secondary);
  transition: background 0.18s, color 0.18s;
  flex-shrink: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}
.user-btn::-moz-focus-inner {
  border: 0;
  padding: 0;
}
.user-btn:hover {
  background: rgba(128, 128, 128, 0.18);
  color: var(--text);
}
.user-btn svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  display: block;
  margin: 0;
  pointer-events: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.user-btn.logged-in {
  background: #0078d4;
  color: #fff;
  border-radius: 4px;
}
.user-btn.logged-in > span {
  display: block;
  line-height: 1;
  transform: translateY(-0.25px);
}
.user-btn.logged-in:hover {
  background: #106ebe;
}

/* User menu dropdown */
.user-menu-wrap { position: relative; }
.user-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 1000;
  background: var(--dropdown-bg); border: 1px solid var(--card-border);
  border-radius: 14px; box-shadow: var(--dropdown-shadow);
  min-width: 200px; overflow: hidden; display: none;
}
.user-menu.open { display: block; }
.user-menu__header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--card-border);
}
.user-menu__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu__email { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }
.user-menu__item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-size: 14px; color: var(--text);
  cursor: pointer; transition: background 0.1s;
}
.user-menu__item:hover { background: var(--row-hover); }
.user-menu__item svg { width: 15px; height: 15px; color: var(--text-secondary); flex-shrink: 0; }
.user-menu__item.danger { color: #FF3B30; }
.user-menu__item.danger svg { color: #FF3B30; }
.user-menu__divider { height: 1px; background: var(--card-border); margin: 0; }

/* ===== REPORT MODAL ===== */
.report-overlay {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.5);
  align-items: center; justify-content: center;
}
.report-overlay.open { display: flex; }
.report-modal {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  width: calc(100% - 32px); max-width: 400px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.report-modal__header {
  display: flex; align-items: center; justify-content: space-between;
}
.report-modal__title { font-size: 16px; font-weight: 600; color: var(--text); }
.report-modal__close {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--divider); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: background 0.15s;
}
.report-modal__close:hover { background: var(--filter-border); }
.report-modal__close svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; display: block; }
.report-modal__desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-top: -4px; }
.report-modal__field { display: flex; flex-direction: column; gap: 5px; }
.report-modal__field label { font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.report-modal__field select,
.report-modal__field input,
.report-modal__field textarea {
  width: 100%; background: var(--bg);
  border: 1px solid var(--filter-border); border-radius: 6px;
  padding: 9px 12px; font-size: 14px; color: var(--text);
  font-family: inherit; outline: none;
  transition: border-color 0.18s;
  -webkit-appearance: none; appearance: none;
}
.report-modal__field select:focus,
.report-modal__field input:focus,
.report-modal__field textarea:focus { border-color: #0078D4; }
.report-modal__field textarea { resize: none; height: 80px; line-height: 1.5; }
.report-modal__field select option { background: var(--card-bg); }
.report-modal__actions { display: flex; gap: 8px; }
.report-modal__cancel {
  flex: 1; height: 42px; border-radius: 6px;
  border: 1px solid var(--filter-border); background: none;
  color: var(--text-secondary); font-size: 14px; cursor: pointer;
  transition: background 0.15s;
}
.report-modal__cancel:hover { background: var(--divider); }
.report-modal__submit {
  flex: 2; height: 42px; border-radius: 6px;
  background: #0078D4; color: #fff; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: opacity 0.15s;
}
.report-modal__submit:hover { opacity: 0.88; }
.report-modal__success {
  display: none; flex-direction: column; align-items: center;
  gap: 8px; padding: 16px 0; text-align: center;
}
.report-modal__success-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(48,209,88,0.12);
  display: flex; align-items: center; justify-content: center;
}
.report-modal__success-icon svg { width: 22px; height: 22px; stroke: #30D158; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.report-modal__success p { font-size: 16px; font-weight: 600; color: var(--text); }
.report-modal__success span { font-size: 13px; color: var(--text-secondary); }
