.auth-overlay {
  display: none; position: fixed; inset: 0; z-index: 10100;
  background: rgba(0,0,0,0.5);
  align-items: center; justify-content: center;
}
.auth-overlay.open { display: flex; }
.auth-modal {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  width: calc(100% - 32px); max-width: 380px;
  padding: 28px 24px 24px;
  display: flex; flex-direction: column; gap: 0;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  position: relative;
}
.auth-modal__close {
  position: absolute; top: 16px; right: 16px;
  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;
}
.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; }
.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: 6px;
  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:focus { border-color: #0078D4; }
.auth-field input.error { border-color: #FF3B30; }
.auth-error { font-size: 12px; color: #FF3B30; margin-top: -4px; display: none; }
.auth-error.show { display: block; }

.auth-submit {
  width: 100%; height: 44px; border-radius: 6px;
  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%; height: 42px; border-radius: 6px;
  border: 1px solid var(--filter-border); background: var(--bg);
  color: var(--text); font-size: 14px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 10px; font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.auth-social-btn:hover { background: var(--row-hover); border-color: var(--text-secondary); }
.auth-social-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.auth-social-btn.todo { opacity: 0.55; cursor: not-allowed; }

/* 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); }
.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: 2px 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); }
